Opaque type aliases

Opaque Type Aliases

Reading Time: 3 minutes Introduction Scala is a statically typed programming language. This means the compiler determines the type of a variable at compile time. A type alias is usually used to simplify declaration for complex types, such as parameterized types or function types. Opaque type aliases do not allow access to their underlying type outside of the file in which they are defined. Opaque type alias is a feature that Continue Reading