Concept-controlled polymorphism

21Citations
Citations of this article
24Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Concepts - sets of abstractions related by common requirements - have a central role in generic programming. This paper proposes a general framework for using concepts to control polymorphism in different ways. First, concepts can be used to constrain parametric polymorphism, as exemplified by type classes in Haskell. Second, concepts can be used to provide fine-grained control of function and operator overloading. Finally, generic functions can be overloaded (specialized) based on concepts, rather than simply on types. We describe a C++ implementation of a new mechanism, which we call enable if, and its role in concept-controlled polymorphism. © Springer-Verlag Berlin Heidelberg 2003.

Cite

CITATION STYLE

APA

Järvi, J., Willcock, J., & Lumsdaine, A. (2003). Concept-controlled polymorphism. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2830, 228–244. https://doi.org/10.1007/978-3-540-39815-8_14

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free