r/programming • • Jul 25 '13

CoffeeScript's Scoping is Madness

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

315 comments sorted by

View all comments

Show parent comment

1

u/jmhnilbog Aug 01 '13

What's wrong with:

foo (x)->
  console.log 'x'
, bar

I'm assuming your lambda would have some content. Without any, this won't work.

1

u/[deleted] Aug 01 '13

I didn't know that that works. Thanks.