Am just starting out with Livescript and want to know how the scope works.
Are the any good example/docs that show all scope symbols and usage. Symbols like:
- @
- -> vs ~>
- self
- :=
Edit
The problem I face:
This ethercalc code: line 103. I want to insert a call to a Java script function, i.e. to this send email code.
http://livescript.net documents all that functionality.
@meansthis.@propmeansthis.prop->creates a function, it meansfunction(){}-> blah()isfunction(){ return blah(); }(a, b) -> fooisfunction(a, b) { return foo; }selfis nothing special, just the name of a variable. Often set tothisof an upper scope.:=means "reassign a variable" - it must already exist. It does not create a new variable. Check out http://livescript.net/#introduction for more info