Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Typescript is a nicer language than Python in many ways and it doesn't suffer from Python's crippling performance issues or dubious static typing situation. Plus you can run it in a browser so there's only one language to learn.


Typescript would be nice if it weren't essentially just a bunch of macros for JavaScript. As it is now, as soon as you want to run it, you lose all the benefits of it (including many performance optimizations that could be made in a statically typed runtime) and of course, all the usual footguns of vanilla JS still apply. It's a great development tool though, I'll give you that.


> just a bunch of macros for JavaScript

It isn't any macros. Not sure what you're talking about.

> all the usual footguns of vanilla JS still apply

Yeah that does suck but fortunately ESLint and Typescript have options to prevent most of them. If you use Deno they're enabled by default.

> including many performance optimizations that could be made in a statically typed runtime

Also true, but we're comparing it to PHP and Python.


You cannot run TS in a browser.

You can compile it to JS or to Webassembly. But you can do that with every language.


You can't compile TS to WASM, and there's a big difference between just stripping types from TS and transpiling Java or even something like Dart.

Way to miss the point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: