-
Notifications
You must be signed in to change notification settings - Fork 111
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
for [a..b] then c
#317
Comments
That it is legal doesn't mean it's intentional, very useful or clear. The coffee> for [ 0 .. 3 ] then console.log 'x'
x
x
x
x
[ undefined,
undefined,
undefined,
undefined ]
coffee> It gets worse if you happen to place this as the last line into a function, because then implicit |
The feature is intentional and nowadays it is documented as well. |
Is it? The closest i seem to be able to find is, under "Operators and Aliases" on the CoffeeScript homepage, the remark that "Instead of a newline or semicolon, |
for [a..b] then c
is valid in jashkenas/coffee-script, although it is not documented.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: