-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new syntax sugar for anonymous objects #3704
Comments
@maxonfjvipon WDYT? |
|
@maxonfjvipon indeed, it's a mix of notations. How about this instead:
Which is very close to what we do in Ruby:
|
@yegor256 better, but still... if we allow the mixing in such case, it'll be possible to write something like this:
We prohibited on purpose some time ago |
@maxonfjvipon we won't allow this, just one special case, with the |
@yegor256 ok, I'll try to introduce it into our grammar |
Consider this code:
It would be more convenient to write it shorter:
This will save one indentation.
The text was updated successfully, but these errors were encountered: