Re:Apple Lossless Decoder in Coffeescript
by jashkenas on Tuesday December 20, 2011 @07:56AM
(#3373250)
I agree with you at least 40%, and that's originally how CoffeeScript behaved. Would you still feel that way if you had explicitly written:
for i in [10..0]
I've opened a ticket to discuss this further: https://github.com/jashkenas/coffee-script/issues/1952
Not knowing CoffeeScript well, when I see this code:
n = -10 for i in [0...n] doSomething()
I'd expect it to call doSomething zero times. At least that's what I'd expect in JavaScript or any of the other languages I've used.