HomeServicesBlogDictionariesContactSpanish Course
Back to search

type erasure

Noun CEFR B2

Definitions

  1. A compile-time process by which explicit data type annotations are removed from a program, before run-time execution.
  2. A technique by which a class is made generic without requiring compile-time template arguments.

Examples

“Although .NET does not have⟳ type⟳ erasure, meaning it supports reified types, the .NET version of Scala currently follows the JVM's erasure model⟳ in order⟳ to avoid⟳ incompatibilities that would require⟳ a “forked” implementation.”
“Type⟳ erasure is a mapping from types (possibly including parameterized types and type⟳ variables) to types (that are never parameterized types or type⟳ variables).”
“Type⟳ erasure is often seen as a mysterious, enigmatic programming technique. It is not exclusive to C++ (most tutorials on type⟳ erasure use⟳ Java for their examples).”

CEFR level

B2
Upper Intermediate
This word is part of the CEFR B2 vocabulary — upper intermediate level.
See all B2 English words →

See also

Learn this word in context

See type erasure used in real conversations inside our free language course.

Start Free Course

Know this word better than we do? Language is a living thing — help us keep it growing. Collaborate with Babel Free