ages = (function() { __a = []; __b = years_old; for (child in __b) { age = __b[child]; if (__hasProp.call(__b, child)) { __a.push(child + " is " + age); } } return __a; }).call(this);
ages = (function() { __a = []; __b = years_old; for (child in __b) if (__hasProp.call(__b, child)) { age = __b[child]; __a.push(child + " is " + age); } return __a; }).call(this);
I've pushed a patch that implements your suggestion, and all the tests are passing:
http://github.com/jashkenas/coffee-script/commit/7667e167322...
Thanks for that.