News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by mnahkies on Saturday May 15, 2021 @02:00PM (#27167414)
> I just don't like the idea of depending on transpilers to not suck when creating the final code

How does this differ from trusting a compiler or interpreter?

Every language has to be translated to machine code in some way.

Re:Modern Javascript: Everything you missed over the last 10... by Cyberdog on Saturday May 15, 2021 @03:52PM (#27168381)
> How does this differ from trusting a compiler or interpreter?

When was the last time you found a bug and it was the compiler or interpreter's fault?

At any rate, the big difference is debugging, as I mentioned above. How fun is it to debug code which you only kind of indirectly wrote?

Re:Modern Javascript: Everything you missed over the last 10... by mnahkies on Saturday May 15, 2021 @04:03PM (#27168482)
The code output by typescript is generally pretty readable depending on the target, and the source mapping works very well regardless. The debuggers in all major browsers and ides handle it fine.

I've not come across any bugs caused by typescript itself in the time I've been using it since 2014, and my point was that this is the same for c or any other language - how fun is it to debug assembly you only kind of wrote