A comparison of C++ concepts and Haskell type classes
Paper i proceeding, 2008

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 two 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.

Haskell

Concepts

Specification-Driven Development

C++

Generic Programming

Type Classes

Författare

Jean-Philippe Bernardy

Chalmers, Data- och informationsteknik, Programvaruteknik (Chalmers)

Patrik Jansson

Chalmers, Data- och informationsteknik, Programvaruteknik (Chalmers)

Marcin Zalewski

Chalmers, Data- och informationsteknik, Programvaruteknik (Chalmers)

Sibylle Schupp

Chalmers, Data- och informationsteknik, Programvaruteknik (Chalmers)

Andreas Priesnitz

Chalmers, Data- och informationsteknik, Programvaruteknik (Chalmers)

ACM SIGPLAN Workshop on Generic Programming 2008. Victoria, Canada, 20th September 2008

37-48
978-1-60558-060-9 (ISBN)

Ämneskategorier

Programvaruteknik

ISBN

978-1-60558-060-9

Mer information

Skapat

2017-10-07