{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T23:05:43Z","timestamp":1779836743085,"version":"3.53.1"},"reference-count":50,"publisher":"Cambridge University Press (CUP)","issue":"3-4","license":[{"start":{"date-parts":[[2010,9,29]],"date-time":"2010-09-29T00:00:00Z","timestamp":1285718400000},"content-version":"unspecified","delay-in-days":90,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2010,7]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Earlier studies have introduced a list of high-level evaluation criteria to assess how well a language supports generic programming. Languages that meet all criteria include Haskell because of its type classes and C++ with the concept feature. We refine these criteria into a taxonomy that captures commonalities and 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.<\/jats:p>","DOI":"10.1017\/s095679681000016x","type":"journal-article","created":{"date-parts":[[2010,9,29]],"date-time":"2010-09-29T06:46:44Z","timestamp":1285742804000},"page":"271-302","source":"Crossref","is-referenced-by-count":5,"title":["Generic programming with C++ concepts and Haskell type classes\u2014a comparison"],"prefix":"10.1017","volume":"20","author":[{"given":"JEAN-PHILIPPE","family":"BERNARDY","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"PATRIK","family":"JANSSON","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"MARCIN","family":"ZALEWSKI","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"SIBYLLE","family":"SCHUPP","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2010,9,29]]},"reference":[{"key":"S095679681000016X_ref25","unstructured":"Kapur D. & Musser D. (1992) Tecton: A Framework for Specifying and Verifying Generic System Components. Technical Report, Rensselaer Polytechnic Institute [online]. Available at: URL http:\/\/www.cs.rpi.edu\/musser\/gp\/tecton\/tpcd-tecton.ps."},{"key":"S095679681000016X_ref1","volume-title":"Generic Programming and the STL: Using and Extending the C++ Standard Template Library","author":"Austern","year":"1998"},{"key":"S095679681000016X_ref6","doi-asserted-by":"publisher","DOI":"10.1145\/6041.6042"},{"key":"S095679681000016X_ref21","doi-asserted-by":"publisher","DOI":"10.1145\/165180.165190"},{"key":"S095679681000016X_ref18","volume-title":"Proceedings of the 2000 ACM SIGPLAN Haskell Workshop","author":"Hinze","year":"2001"},{"key":"S095679681000016X_ref15","unstructured":"Gregor D. (August 2009) What happened in Frankfurt? C++-Next, The next generation of C++ [online]. Available at: http:\/\/cpp-next.com\/archive\/2009\/08\/what-happened-in-frankfurt\/."},{"key":"S095679681000016X_ref11","first-page":"1","volume-title":"Spring School on Datatype-Generic Programming","author":"Gibbons","year":"2007"},{"key":"S095679681000016X_ref9","first-page":"295","volume-title":"Proceedings of the 33rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL)","author":"Dos Reis","year":"2006"},{"key":"S095679681000016X_ref7","doi-asserted-by":"publisher","DOI":"10.1145\/1090189.1086397"},{"key":"S095679681000016X_ref37","volume-title":"Proceedings of the 13th ACM SIGPLAN International Conference on Functional Programming (ICFP 2008)","author":"Schrijvers","year":"2008"},{"key":"S095679681000016X_ref2","unstructured":"Becker P. (ed) (June 2009) Working Draft, Standard for Programming Language C++. Number N2914=09-0104 in JTC1\/SC22\/WG21 - C++. ISO\/IEC."},{"key":"S095679681000016X_ref19","first-page":"470","volume-title":"Proceedings of the Principles of Programming Languages (POPL 1997:)","author":"Jansson","year":"1997"},{"key":"S095679681000016X_ref14","unstructured":"Gregor D. (2008b) Type-Soundness and Optimization in the Concepts Proposal. Technical Report N2576=08-0086, ISO\/IEC JTC1\/SC22\/WG21 - C++."},{"key":"S095679681000016X_ref12","unstructured":"Gottschling P. (2008) Concept Implication and Requirement Propagation. Technical Report N2646=08-0156, ISO\/IEC JTC1\/SC22\/WG21 - C++."},{"key":"S095679681000016X_ref30","unstructured":"Meacham J. (2006) Class alias proposal for Haskell [online]. Available at: http:\/\/repetae.net\/recent\/out\/classalias.html."},{"key":"S095679681000016X_ref5","unstructured":"Brown W. , Jefferson C. , Meredith A. & Widman J. (2008) Named Requirements for C++ Concepts. Technical Report N2581=08-0091, ISO\/IEC JTC1\/SC22\/WG21 - C++."},{"key":"S095679681000016X_ref44","unstructured":"Stroustrup B. (July 2009b) The C++0x \u201cRemove Concepts\u201d Decision. Dr. Dobb's."},{"key":"S095679681000016X_ref28","doi-asserted-by":"crossref","unstructured":"Lincke D. , Jansson P. , Zalewski M. & Ionescu C. (July 2009) Generic libraries in C++ with concepts from High-Level domain descriptions in Haskell. In IFIP TC 2 Working Conference on Domain-Specific Languages, pp. 236\u2013261.","DOI":"10.1007\/978-3-642-03034-5_12"},{"key":"S095679681000016X_ref29","unstructured":"McBride C. (2010) She's faking it [online]. Available at: http:\/\/personal.cis.strath.ac.uk\/~conor\/pub\/she\/faking.html."},{"key":"S095679681000016X_ref35","unstructured":"Peyton Jones S. , Jones M. & Meijer E. (1997) Type classes: an exploration of the design space. In Haskell Workshop [online]. Available at: http:\/\/research.microsoft.com\/en-us\/um\/people\/simonpj\/papers\/type-class-design-space\/."},{"key":"S095679681000016X_ref34","volume-title":"Haskell 98 Language and Libraries: the Revised Report","author":"Peyton Jones","year":"2003"},{"key":"S095679681000016X_ref10","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796806006198"},{"key":"S095679681000016X_ref26","unstructured":"Kiselyov O. & Peyton Jones S. (April 2008) Choosing a type-class instance based on the context [online]. Available at: http:\/\/haskell.org\/haskellwiki\/GHC\/AdvancedOverlap."},{"key":"S095679681000016X_ref16","doi-asserted-by":"crossref","unstructured":"Gregor D. , J\u00e4rvi J. , Siek J. , Stroustrup B. , Dos Reis G. & Lumsdaine A. (2006) Concepts: Linguistic support for generic programming in C++. In Proceedings of the ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages & Applications (OOPSLA), pp. 291\u2013310.","DOI":"10.1145\/1167473.1167499"},{"key":"S095679681000016X_ref41","volume-title":"Proceedings of the ACM SIGPLAN 2005 Conference on Programming Language Design and Implementation (PLDI 2005)","author":"Siek","year":"2005"},{"key":"S095679681000016X_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-39953-4"},{"key":"S095679681000016X_ref32","first-page":"66","volume-title":"Proceedings of the 2006 ACM SIGPLAN Workshop on Generic Programming (WGP 2006)","author":"Munkby","year":"2010"},{"key":"S095679681000016X_ref3","doi-asserted-by":"publisher","DOI":"10.1145\/1411318.1411324"},{"key":"S095679681000016X_ref22","doi-asserted-by":"publisher","DOI":"10.1007\/BF01019005"},{"key":"S095679681000016X_ref45","doi-asserted-by":"publisher","DOI":"10.1145\/1190315.1190324"},{"key":"S095679681000016X_ref17","unstructured":"Gregor D. & Siek J. (August 2005) Implementing Concepts. Technical Report N1848=05-0108, ISO\/IEC JTC1\/SC22\/WG21 - C++."},{"key":"S095679681000016X_ref23","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-46425-5_15"},{"key":"S095679681000016X_ref4","unstructured":"Boost. (2009). The Boost initiative for free peer-reviewed portable C++ source libraries. Available at: http:\/\/www.boost.org."},{"key":"S095679681000016X_ref27","volume-title":"Draft Proceedings of Trends in Functional Programming","author":"Kiselyov","year":"2007"},{"key":"S095679681000016X_ref31","volume-title":"Deriving Generic Functions by Example","author":"Mitchell","year":"2007"},{"key":"S095679681000016X_ref38","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796809990086"},{"key":"S095679681000016X_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-76786-2_5"},{"key":"S095679681000016X_ref40","doi-asserted-by":"publisher","DOI":"10.1145\/636517.636528"},{"key":"S095679681000016X_ref42","volume-title":"The Standard Template Library","author":"Stepanov","year":"1995"},{"key":"S095679681000016X_ref43","unstructured":"Stroustrup B. (June 2009a) Simplifying the Use of Concepts. Technical Report N2906=09-0096, ISO\/IEC JTC1\/SC22\/WG21 - C++."},{"key":"S095679681000016X_ref46","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796806006137"},{"key":"S095679681000016X_ref47","volume-title":"C++ Templates: The Complete Guide","author":"Vandevoorde","year":"2002"},{"key":"S095679681000016X_ref48","doi-asserted-by":"crossref","first-page":"60","DOI":"10.1145\/75277.75283","volume-title":"Proceedings of the 16th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL 1989:)","author":"Wadler","year":"1989"},{"key":"S095679681000016X_ref49","volume-title":"Concepts: a Linguistic Foundation of Generic Programming at Adobe Tech Summit","author":"Willcock","year":"2004"},{"key":"S095679681000016X_ref50","unstructured":"Zalewski M. , Priesnitz A. , Ionescu C. , Botta N. & Schupp S. (2007) Multi-language library development: From Haskell type classes to C++ concepts. In Multiparadigm Programming with Object-Oriented Languages: MPOOL 2007."},{"key":"S095679681000016X_ref33","volume-title":"Proceedings of the 2010 International Symposium on Functional and Logic Programming (FLOPS 2010:)","author":"Orchard","year":"2010"},{"key":"S095679681000016X_ref24","first-page":"77","volume-title":"Proceedings of the 2001 ACM SIGPLAN Haskell Workshop","author":"Kahl","year":"2001"},{"key":"S095679681000016X_ref13","unstructured":"Gregor D. (January 2008a) ConceptGCC \u2014 a prototype compiler for C++ concepts [online] Available at: http:\/\/www.generic-programming.org\/software\/ConceptGCC\/."},{"key":"S095679681000016X_ref8","first-page":"1","volume-title":"Proceedings of the 32nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL)","author":"Chakravarty","year":"2005"},{"key":"S095679681000016X_ref36","first-page":"111","volume-title":"Haskell 2008","author":"Rodriguez","year":"2008"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S095679681000016X","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:22Z","timestamp":1779834982000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S095679681000016X\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2010,7]]},"references-count":50,"journal-issue":{"issue":"3-4","published-print":{"date-parts":[[2010,7]]}},"alternative-id":["S095679681000016X"],"URL":"https:\/\/doi.org\/10.1017\/s095679681000016x","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2010,7]]}}}