Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Conway's Game of Life in CoffeeScript. Parent comment
Yes, range comprehensions were recently optimized to remove direction-checking when possible. On CoffeeScript master ...
x for x in [-10..10]
var x; for (x = -10; x <= 10; x++) { x; }
Yes, range comprehensions were recently optimized to remove direction-checking when possible. On CoffeeScript master ...
... compiles into: Even if the start/end values are variables, the check can be avoided by specifying the step as a number. It'll go out with the next release.