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 edited Aug 05 '14
It is a syntax proposal to coffee script to add the ability of explicit defining local variables.
This proposal is to fix the problem with implicit scoping in coffeescript.