Sorry, I was mistaken. I posted that on a mobile phone so I didn't have a chance to verify. Apparently I mixed up for i in [0..foo] with for i in [0..5], the latter of which does not expand to an inefficient version. And so when I saw that I thought they fixed the inefficient version in a recent CoffeeScript version or something.
Sorry for the mixup! Good to make more people aware of the "by 1" optimization.
View all comments
Show parent comment
3
u/int3_ May 19 '12
Just checked with version 1.3.3, and I got the same (inefficient) result. What Coffeescript code did you try compiling?