3 ms·
> CoffeeScript != JavaScript [...] Python != Ruby I beg to differ, CoffeeScript really is JavaScript, written (literally) differently. CoffeeScript is merely a
by lloeki 13y ago
> CoffeeScript != JavaScript [...] Python != Ruby
I beg to differ, CoffeeScript really is JavaScript, written (literally) differently. CoffeeScript is merely a different formal language+grammar[0] that can (and is — almost) translated word for word into the same core. The semantics and underpinnings are exactly the same as with JavaScript.
Conversely, were you writing Python with a Ruby-like formal language, it would not give you things that are profoundly Ruby, like blocks or inheritance model (classes and modules, singletons, method resolution) or open classes or require. The opposite is completely true, as writing Ruby in a Python formal language would not give you decorators or (python) modules with their imports and namespaces.
CoffeeScript vs JavaScript is literally a bikeshed over the very same core.
(That said, I'm in the CS camp because I find the language requires much less overhead to keep code safe and sound, especially when dealing with not so potent developers that just can't seem to understand that yes, var is damn important)
[0]: in the mathematical sense, i.e http://en.wikipedia.org/wiki/Formal_language http://en.wikipedia.org/wiki/Formal_language
- anaphor 13y agoYes, this is what I've been saying all along. CS does not alter the semantics of JS, it is just a different syntax for the same language. A PL is not just its syntax. I sometimes hear new programmers say something like "it's easy to learn more programming languages once you know one, it's just syntax" and I'm not sure where they're getting this idea from :(