-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
get rid of the . in tuples & anonymous struct literal syntax #5039
Copy link
Copy link
Closed as not planned
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Milestone
Metadata
Metadata
Assignees
Labels
breakingImplementing this issue could cause existing code to no longer compile or have different behavior.Implementing this issue could cause existing code to no longer compile or have different behavior.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm not sure if it's possible to do this, but here's an issue at least to document that we tried.
I believe the current problem is that when the parser sees
It still doesn't know if this is is a block or tuple. But the next token would either be
,making it a tuple,;making it a block, or}making it a tuple. Maybe that's OK.Then tuples & anonymous struct literals will be less noisy syntactically and be easier to type.