A comparison of c++ concepts and haskell type classes

Jean-Philippe Bernardy, Patrik Jansson, Marcin Zalewski, Sibylle Schupp, Andreas Priesnitz

2008 · 23 citations · 29 references

Concepts

Abstract

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 capturesdifferences between type classes in Haskell and concepts inC++, and discuss which differences are incidental and whichones 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.

References

29