I am just wondering what is the reason for so abundant for loop in the Array initialization. For example this code:
count = (0 for [0..@size])
gives:
return count = (function() {
var _i, _ref, _results;
_results = [];
for (_i = 0, _ref = this.size; 0 <= _ref ? _i <= _ref : _i >= _ref; 0 <= _ref ? _i++ : _i--) {
_results.push(0);
}
return _results;
}).call(this);
Why Coffeescript uses so redundant code instead of:
for (var i = 0; i < this.size; i++) {
_results[i] = 0;
}