2008 · 23 citations · 29 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSyntaxAbstract Syntax TreesData TypesGeneric ProgrammingProgramming Language DesignType ClassificationType SystemsGeneric TypesPolymorphic TypesStructural TypingType ClassesType ConstructorsType Polymorphism
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.
29
How to make ad-hoc polymorphism less ad hoc
Philip Wadler, Stephen Blott · 1989 · 770 citations · Full text
Template meta-programming for Haskell
Tim Sheard, Simon Peyton Jones · 2002 · 548 citations
Alexander A. Stepanov, Meng Lee · 1998 · 409 citations
PolyP---a polytypic programming language extension
Patrik Jansson, Johan Jeuring · 1997 · 246 citations · Full text
System F with type equality coercions
Martin Sulzmann, Manuel M. T. Chakravarty, Simon Peyton Jones et al. · 2007 · 239 citations