A comparison of C++ concepts and Haskell type classes

JP Bernardy, P Jansson, M Zalewski…�- Proceedings of the�…, 2008 - dl.acm.org
JP Bernardy, P Jansson, M Zalewski, S Schupp, A Priesnitz
Proceedings of the ACM SIGPLAN workshop on Generic programming, 2008dl.acm.org
Earlier studies have introduced a list of high-level evaluation criteria to assess how well a
language supports generic programming. Since each language that meets all criteria is
considered generic, those criteria are not fine-grained enough to differentiate between
languages for generic programming. We refine these criteria into a taxonomy that captures
differences between type classes in Haskell and concepts in C++, and discuss which
differences are incidental and which ones are due to other language features. The taxonomy�…
Earlier studies have introduced a list of high-level evaluation criteria to assess how well a language supports generic programming. Since each language that meets all criteria is considered generic, those criteria are not fine-grained enough to differentiate between languages for generic programming. We refine these criteria into a taxonomy that captures differences between type classes in Haskell and concepts in C++, and discuss which differences are incidental and which ones are due to other language features. The taxonomy allows for an improved understanding of language support for generic programming, and the comparison is useful for the ongoing discussions among language designers and users of both languages.
ACM Digital Library
Showing the best result for this search. See all results