existential type
English
Noun
existential type (plural existential types)
- (programming, type systems) A type that hides the underlying concrete type(s).
- Synonym: existential
- 2002, Benjamin C. Pierce, Types and Programming Languages, MIT Press, →ISBN, page 363:
- Existential types are fundamentally no more complicated than universal types (in fact, we will see in §24.3 that existentials can straightforwardly be encoded in terms of universals).
- 2021, Dean Wampler, chapter 16, in Programming Scala, 3rd edition, O'Reilly, →ISBN:
- Scala 2 supported existential types, a way of abstracting over types. They let you assert that some type exists without specifying exactly what it is, usually because you don't know what it is and you don't need to know it in the current context.
- 2021, Jon Gjengset, Rust for Rustaceans, No Starch Press, →ISBN, page 34:
- This behavior is what gives existential types their name: we are asserting that there exists some concrete type that matches the signature, and we leave it up to the compiler to find what that type is.
- Used other than figuratively or idiomatically: see existential, type.
Further reading
Type system § Existential types on Wikipedia.Wikipedia
This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.