3 ms·
No, it's not JS. > class UseCase SyntaxError: Unexpected reserved word
by k3n 14y ago
No, it's not JS.
> class UseCase
SyntaxError: Unexpected reserved word
- ricardobeat 14y agoOf course CoffeeScript code won't run as javascript, it's not a superset. But it operates on the same global scope, the same object model, with similar semantics, so it "is" javascript, unlike other compile-to-js languages. After reading more about it, I agree that it shouldn't have .js in it's name, or any other language extension, since it's not a framework/library. The fact that the examples are written in CoffeeScript is incidental.
- gfodor 14y agoOf course the point is it's not clear what it means to "be JS". Is it more important for the name to express what syntax the source code is in or what platform the code can run on? I think for your average developer who just wants to consume a library, they care more that it is a javascript-based library that they can use.