We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get the following error (on cup and with ./coco)
Code: i = 0; x = [1 to i] Coco: ReferenceError: returni is not defined As the contrary, LS:
i = 0; x = [1 to i]
ReferenceError: returni is not defined
var i, x; i = 0; x = [1, 2, 3];
The text was updated successfully, but these errors were encountered:
See #65. You need to be a little verbose for that effect: x = (j for j from 1 to i)
x = (j for j from 1 to i)
Smells like a bug. Will fix.
As the contrary, LS:
LS added a shorthand syntax for this particular case, sacrificing some capabilities as the result:
$ coco -bce '[0, 1 to 3]; [f 4 to 6]' [0, 1, 2, 3]; [f(4, 5, 6)]; $ livescript -bce '[0, 1 to 3]' Error: Parse error on line 1: Unexpected 'TO' $ livescript -bce '[f 4 to 6]' Error: Parse error on line 1: Unexpected 'TO'
Sorry, something went wrong.
fixed the handling of 1 to i etc. (#143)
1 to i
61d2f14
(you need to puts "fixes", "fixed" and such) in order for github to automatically close the issue)
thanks !
(you need to puts "fixes", "fixed" and such)
Didn't do that on purpose as this is also a question.
No branches or pull requests
I get the following error (on cup and with ./coco)
Code:
i = 0; x = [1 to i]
Coco:
ReferenceError: returni is not defined
As the contrary, LS:
The text was updated successfully, but these errors were encountered: