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

6

u/munificent Jul 26 '13

everything's-an-expression-except-for-loops, which would be a bit sad.

It could still be an expression, just one that always evaluated to undefined. The return expression doesn't have a meaningful evaluated value either, for that matter. (Which is natural, of course, since there would be no way to capture it.)