Scala for generic programmers (2008)
Cached
Download Links
- [ropas.snu.ac.kr]
- [web.comlab.ox.ac.uk]
- [www.comlab.ox.ac.uk]
- DBLP
Other Repositories/Bibliography
| Venue: | ACM SIGPLAN Workshop on Generic Programming |
| Citations: | 5 - 2 self |
BibTeX
@INPROCEEDINGS{Oliveira08scalafor,
author = {Bruno C. D. S. Oliveira and Jeremy Gibbons},
title = {Scala for generic programmers},
booktitle = {ACM SIGPLAN Workshop on Generic Programming},
year = {2008},
pages = {25--36}
}
OpenURL
Abstract
Datatype-generic programming involves parametrization by the shape of data, in the form of type constructors such as ‘list of’. Most approaches to datatype-generic programming are developed in the lazy functional programming language Haskell. We argue that the functional object-oriented language Scala is in many ways a better setting. Not only does Scala provide equivalents of all the necessary functional programming features (such parametric polymorphism, higher-order functions, higher-kinded type operations, and type- and constructor-classes), but it also provides the most useful features of object-oriented languages (such as subtyping, overriding, traditional single inheritance, and multiple inheritance in the form of traits). We show how this combination of features benefits datatype-generic programming, using three different approaches as illustrations.







