|
|
|
|
|
by latchkey
5175 days ago
|
|
The correct syntax is: helloWorld = -> You just learn that -> == function() {} That said, I found it hard to parse until I started working in it for a few weeks and got used to it. Now, reading function() and {} everywhere seems like a mess of boilerplate to me. Really, it is just a matter of what you are used to. re #3: Also, I can't think of an optimization that JS has that can't be expressed in CS. It just doesn't work like that. re #5: That seems like a kind of crazy generalization. How can you say that when CS 'compiles' to JS anyway? |
|