r/coffeescript • u/hh9527 • Aug 05 '14
Add explicit local var defination to coffee?
It is a proposal to fix the problem with implicit scoping in coffee.
coffee script like this
foo = (a, b; x, y = 0) -> blabla...
will compiled to
var foo; foo = function(a,b) { var x, y = 0; blabla... }
0
Upvotes
View all comments
Show parent comment
1
u/hh9527 Aug 05 '14
Thank you, I know the do statement, but I didnt know it will generate non-IIFE code in the future. Is there any detail information about the future version?