Type aliases vs. Derived types #24

Merged
HEL merged 3 commits from feat/subtypes-and-aliases into main 2026-07-01 08:09:14 +00:00
Owner

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)
HEL self-assigned this 2026-07-01 08:09:07 +00:00
HEL added 3 commits 2026-07-01 08:09:07 +00:00
HEL merged commit d039a8e4b3 into main 2026-07-01 08:09:14 +00:00
HEL deleted branch feat/subtypes-and-aliases 2026-07-01 08:09:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/midas#24