Named and default arguments for polymorphic object-oriented languages

This article describes the design and implementation of named and default arguments in the Scala programming language. While these features are available in many other languages there are significant differences in the actual implementations. We present a design that unifies the most reasonable properties for an object-oriented language and provides new possibilities by allowing default arguments on generic and implicit parameters. We also present a solution for the problem of writing a lightweight generic update function for algebraic datatypes.


Publié dans:
Proceedings of the 2010 ACM Symposium on Applied Computing, 2090-2095
Présenté à:
25th Symposium On Applied Computing, Sierre, Switzerland, March 22-26, 2010
Année
2010
Publisher:
New York, NY, USA, ACM
Mots-clefs:
Laboratoires:




 Notice créée le 2012-01-01, modifiée le 2019-03-16

n/a:
Télécharger le document
PDF

Évaluer ce document:

Rate this document:
1
2
3
 
(Pas encore évalué)