4 ms·
>It also bugs the fuck out of me that CoffeeScript projects frequently end up being given a *.js extension If a project compiles down to Javascript and is inte
by lowboy 13y ago
>It also bugs the fuck out of me that CoffeeScript projects frequently end up being given a *.js extension
If a project compiles down to Javascript and is intended to be used as such, a .js name suits it regardless of the source language.
- regularfry 13y agoFor the project, possibly. Not for an individual source file. That's bananas.
- leokun 13y agoWell since you can compile python, clojure, etc etc to JavaScript I guess the .js extension is meaningless. In my opinion it isn't at all OK, because a .js extension means that the code is in JavaScript, so that I can look at it, and maybe contribute. I'm not interested in CoffeeScript widgetmajigs that turn CoffeeScript into JavaScript. Use .coffee or maybe CoffeeScript just can't stand on its own. Maybe it's just riding JS's coattails and the moment it separates it becomes abandoned.