-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cascade reference breaks inside implicit call #170
Comments
Not sure if we {c,sh}ould fix this since
The length star
|
I suppose it's an argument in favor of livescript's choice of
Doesn't look too bad IMO, and fits in with the backcall notation:
|
"Can't be the first argument of an implicit call" is a weak reason for a symbol change that involves backward incompatibility. You can always use:
Seems irrelevant to me. |
Weak, yes, but still an argument for a different symbol. In regards to backward incompatibility, the usual argument applies (the compiled js will still work). Also, FWIW, Dart also chose I'm not terribly hung up about this problem, but I still think its important to consider all the implications of the symbol choice, and changing the operator sooner rather than later will be less likely to break code. If only there were more symbols to work with :( |
Dart's cascade as shown there has largely different semantics than ours. Good thing we use different symbol.
Sure. Off the top of my head
|
Can't you check if it's a member-access-like ? (which makes me think it's strange that gkz chose |
Probably possible. But it wouldn't be enough since |
Would it be possible/worthwhile to try reparse |
We'd have to disable the auto-line-continuation after bitwise
might be parsable as:
rather than:
Intuitive enough? |
throws
Error: Parse error on line 2: Unexpected 'DEDENT'
, butcompiles as expected:
The text was updated successfully, but these errors were encountered: