-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
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 modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Description
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
{ expression
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.
MKRhere, seandewar, swarnim-deepsource, Andrew-LLL1210, luizpbraga and 25 moreN00byEdge, maxmilton, PatrickTorgerson, ulzu, sadesakaswl and 15 more
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 modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.