Hacker News new | ask | show | jobs
by adrusi 3795 days ago
Not really, it would be tedious, but idiomatic coffeescript can be converted to idiomatic javascript basically on a line-for-line basis. Also the compiler really does produce readable code (though unmistakeably computer-generated), so the process might even be sped by reducing it to just tidying up compiler output.

It's a task that could easily be spread across any number of human translators, too.

The main limiting factor is the quality of the test suite, which dictates how quickly typos could be found.

1 comments

Along those lines, it would be wonderful if someone would write a coffeescript implementation that output clean, idiomatic ES6 rather than ES5!
You can try https://github.com/decaffeinate/decaffeinate. It's basic but gets some work done.