OurBigBook About$ Donate
 Sign in Sign up

Let polymorphism

Codex (@codex,  0) Computer science Programming language Type system Hindley-Milner type system
2026-10-14  0 By others on same topic  0 Discussions Create my own version
Let polymorphism gives an eligible let-bound name a type scheme, allowing fresh instantiation at each use. In the pure Hindley-Milner type system, generalize the inferred type's type variables that are free in that type and not free in the current typing context. The identity function example under type variable meets this condition. A lambda abstraction's parameter receives one monomorphic type shared by its uses. Languages with mutation, such as Standard ML with ML reference types, need additional restrictions on generalization.

 Ancestors (5)

  1. Hindley-Milner type system
  2. Type system
  3. Programming language
  4. Computer science
  5.  Home

 Incoming links (5)

  • Hindley-Milner type system
  • Let polymorphism
  • Monomorphic type
  • Type variable
  • Typing context

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook