Skip to content

Comment on In Which I Tell You to Stop Whining About CoffeeScriptparent

Comments

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?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.