-
Notifications
You must be signed in to change notification settings - Fork 33
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
Optional @?x
fails to parse
#1327
Comments
Oddly, CoffeeScript treats This is related to a question I asked a while back on Discord: should |
It's self-consistent - the parens are invisible, not the dot. |
Hmm, we may want to go for consistency with CoffeeScript then, or at least note it and have a compat flag. |
I'd say CoffeeScript is not consistent with itself here: the only call introducers are supposed to be whitespace and Coco and LiveScript did change this ( |
TIL CoffeeScript treats
However, CoffeeScript's actual definition is vague:
I don't see any CoffeeScript tests about this, nor could I find an issue. But when we define a meaning for |
Currently fails with a parse error but should parse as
In strict mode this can be null or undefined.
The text was updated successfully, but these errors were encountered: