Hacker News new | ask | show | jobs
by blrblr 5115 days ago
It makes more sense for CoffeeScript to exists as an independent language, rather than as a JavaScript generator.

The syntax is beautiful, it had potential; why be a difficult-to-debug JavaScript 'compiler' instead?

3 comments

I'd say this "difficult-to-debug" attitude comes from those who did not actually tried to work with CoffeeScript and just think that would be the case. We have a lot of code in it already and debugging was never an issue.
+1 here too.
Sorry, but wouldn't that defy the purpose? You can only use JavaScript client-side, and I assume it would take a lot of time, effort, and "why" to make browsers ship parsers for other languages.
I'd hardly characterise coffeescript generated js as difficult to debug (even the OO flavoured bits). My experience and that of most others I've seen online is that the mapping from the js that you debug back to the coffeescript that generated is trivially done in your head.
As someone who barely knows any JavaScript, but want to learn CoffeeScript (I know ruby, and they are similar), even I can do this.