3 ms·
In LiveScript [0]: foo = 1 fun = -> foo = 2 fun() alert(foo) #1 and foo = 1 fun = -> foo := 2 fun() alert(foo)
by lloeki 14y ago
In LiveScript [0]:
foo = 1
fun = ->
foo = 2
fun()
alert(foo) #1
and
foo = 1
fun = ->
foo := 2
fun()
alert(foo) #2
But I'm sure haters will find something to hate in LiveScript too.
[0] http://gkz.github.com/LiveScript/#assignment http://gkz.github.com/LiveScript/#assignment