Use different union syntax #456
Labels
enhancement: generate
New feature in the core module
enhancement: parse
New feature in the parse module
Milestone
Current Issue
Typing syntax for union looks a bit like sets, might be a bit confusing.
High-level description of the feature
Use same union syntax as Python, Typescrpt (other?) instead of current, so:
def x: {A, B, C ...} := ...
changes todef x: A | B | C := ....
This also has the added benefit of being more familiar to uses of those languages.
Plus, it just looks better, now we don't mistake it for a set accidentally.
Description of potential implementation
The text was updated successfully, but these errors were encountered: