Abstract
With java 5 and C# 2.0, first-order parametric polymorphism was introduced in mainstream object-oriented programming languages under the name of generics. although the first-order variant of generics is very useful, it also imposes some restrictions: it is possible to abstract over a type, but the resulting type constructor cannot be abstracted over. this can lead to code duplication. we removed this restriction in scala, by allowing type constructors as type parameters and abstract type members. this paper presents the design and implementation of the resulting type constructor polymorphism. furthermore, we study how this feature interacts with existing object-oriented constructs, and show how it makes the language more expressive. Copyright © 2008 ACM.
Author supplied keywords
Cite
CITATION STYLE
Moors, A., Piessens, F., & Odersky, M. (2008). Generics of a higher kind. In Proceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA (pp. 423–438). https://doi.org/10.1145/1449764.1449798
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.