Closed davidbau closed 11 years ago
BTW, I deleted iced-coffee-script/iced-coffee-script
so it doesn't cause future confusion. In the end, I decided to keep things where they are to maintain the issues lists, etc.
And pushed live to npm in 1.6.3-g
Example code:
http://goo.gl/6Cflk1
Expect: should take a few seconds to write 3, 2, 1. Actual: a couple problems in the generated code. (1) With 2 dots, coffeescript knows how to generate backwards ranges even without "by", but iced doesn't know that the stride should be assumed to be -1. (2) Then when the stride is negative, iced coffeescript should flip the inequality termination test from !(x <= 1) to !(x >= 1).
Other similar forms are also broken. With 3 dots, coffeescript requires "by", but the negative stride doesn't work in iced.