ACM Transactions on Programming Languages and Systems · 2004 · 46 citations · 11 references
ComputingComputer ScienceData StructuresProgramming LanguagesTheory Of ComputationData RepresentationData TypesGeneric ProgrammingType CheckingType SystemsData Type InferenceGeneric FunctionsGeneric TypesPattern MatchingPolymorphic Type SystemsPolymorphic TypesType InferenceType Polymorphism
There is a significant class of operations such as mapping that are common to all data structures. The goal of generic programming is to support these operations on arbitrary data types without having to recode for each new type. The pattern calculus and combinatory type system reach this goal by representing each data structure as a combination of names and a finite set of constructors. These can be used to define generic functions by pattern-matching programs in which each pattern has a different type. Evaluation is type-free. Polymorphism is captured by quantifying over type variables that represent unknown structures. A practical type inference algorithm is provided.
11
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text
PolyP---a polytypic programming language extension
Patrik Jansson, Johan Jeuring · 1997 · 246 citations · Full text