This PR separates the concepts of derived types (explicit subtyping) and aliases (simple named types).
The type statement defines a derived type, i.e. type Foo = float creates a subtype (cannot use a float instead of a Foo)
The new alias statement defines a type alias, i.e. alias Bar = float creates an alias (float and Bar are interchangeable)
This PR separates the concepts of derived types (explicit subtyping) and aliases (simple named types).
The `type` statement defines a derived type, i.e. `type Foo = float` creates a subtype (cannot use a `float` instead of a `Foo`)
The new `alias` statement defines a type alias, i.e. `alias Bar = float` creates an alias (`float` and `Bar` are interchangeable)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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)