-
Notifications
You must be signed in to change notification settings - Fork 5
Use different union syntax #456
Copy link
Copy link
Open
Labels
enhancement: generateNew feature in the core moduleNew feature in the core moduleenhancement: parseNew feature in the parse moduleNew feature in the parse module
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancement: generateNew feature in the core moduleNew feature in the core moduleenhancement: parseNew feature in the parse moduleNew feature in the parse module
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