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.
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.