Top Qs
Timeline
Chat
Perspective
value restriction
From Wiktionary, the free dictionary
Remove ads
English
Noun
value restriction (uncountable)
- (computer science, type theory) In a functional language, inference of a polymorphic type only for syntactic values (values that can be evaluated at compile time) to ensure that a program is type-safe.
- 2004, Jacques Garrigue, Relaxing the Value Restriction:
- A typical example is an expression returning always the empty list. It should be given the polymorphic type
α list, but this is not possible under the value restriction if the expression has to be evaluated.
Remove ads
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads