Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

parametric polymorphism

You are here: irt.org | FOLDOC | parametric polymorphism

Polymorphism was first identified by Christopher Strachey in 1967 and developed by Hindley and Milner.

For example we could specify that the argument of the "head" function was a list without specifying a type for the elements of the list. In Haskell we would write:

	head :: [a] -> a

meaning head has type function from "list of a" to "a" where "a" is a type variable). This is known as parametric polymorphism. Polymorphic typing allows strong type checking as well as generic functions. ML in 1976 was the first language with polymorphic typing.

See also generic type variable.

(2014-01-05)

Nearby terms: param « parameter « parameter RAM « parametric polymorphism » paraML » paranoid programming » ParaSoft Corp

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb