Comparing The Combination Of Inclusion-AndParametricPolymorphismInProgrammingLanguages
Stc
Date: 2010-09-23
Time: 12:00
Room:
BBL 079
Speaker: Julian Verdurmen
Title: Comparing the combination of inclusion- and parametric polymorphism in programming languages
Abstract
Nowadays many object-oriented programming languages have support for generics. With generics there are more opportunities to write parametrically
polymorphic code which increases the expressiveness of these languages. When combined with the object-oriented paradigm this increases also the
flexibility of the code. However this flexibility may be limited due to how generics were added to the language.
So what are these limitations? And how do they compare for various object-oriented languages?
To answer these questions, we compare the combination of parametric polymorphism and inclusion polymorphism in Java, C# and Scala. By comparing code examples the differences are illustrated.