3 ms·
The difference is that CoffeeScript was designed to compile to JavaScript, so it can adopt JavaScript semantics. Ruby doesn't have the same semantics as JavaSc
by wtetzner 14y ago
The difference is that CoffeeScript was designed to compile to JavaScript, so it can adopt JavaScript semantics.
Ruby doesn't have the same semantics as JavaScript, so you can't have a 1-to-1 mapping of language constructs.
- jonny_eh 14y agoOh I get that. I'm sure they did as good as job as possible, but it still makes me nervous. As nice a language as Ruby is, I don't think it's worth the trade-off. I'll stick with CoffeeScript since it's a nice compromise between Ruby and JavaScript.