3 ms·
delayed: () -> -> this.model # isn't the class Well, that isn't really fair now, is it? You could have used the fat arrow (`=>`) for binding `this` to t
by solox3 13y ago
delayed: () ->
-> this.model # isn't the class
Well, that isn't really fair now, is it? You could have used the fat arrow (`=>`) for binding `this` to the class.
With that in mind, I agree with the author in that CoffeeScript isn't the answer, at least not exactly. With syntax this incredibly similar, how far are we from compiling python (with generators, with statements, imports, ...) to JavaScript?
- odonnellryan 13y agoThere are a few projects, this is one: http://en.wikipedia.org/wiki/Pyjamas_(software) http://en.wikipedia.org/wiki/Pyjamas_(software)
- mistercow 13y ago>how far are we from compiling python I frankly find CoffeeScript nicer than Python. There are advantages and disadvantages, obviously, but whenever I'm writing Python, it makes me long for CoffeeScript.
- xixixao 13y agoGoing from CoffeeScript to Python (bundled together with going from Node.js to Python) is painful. So many things that CoffeeScript has learned over Python - of all of them, "everything is an expression" rule.
- ilaksh 13y agoCoffeeScript is more readable than Python. If you really get familiar with CoffeeScript then you will see that the benefits add up over JavaScript. If you want a nice Python-like language with import statements and many interesting features that compiles to JavaScript, take a look at Nimrod.