Type aliases vs. Derived types #24
Reference in New Issue
Block a user
Delete Branch "feat/subtypes-and-aliases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR separates the concepts of derived types (explicit subtyping) and aliases (simple named types).
The
typestatement defines a derived type, i.e.type Foo = floatcreates a subtype (cannot use afloatinstead of aFoo)The new
aliasstatement defines a type alias, i.e.alias Bar = floatcreates an alias (floatandBarare interchangeable)