r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

http://donatstudios.com/CoffeeScript-Madness
207 Upvotes

315 comments sorted by

View all comments

Show parent comment

1

u/masklinn Jul 26 '13

In CoffeeScript, 'for' is an expression that returns a value, not a statement.

It's also an expression which returns a value in Ruby, that doesn't mean for and map have to be conflated.