Hacker News new | ask | show | jobs
by pjmlp 2310 days ago
A very good point that experience has taught me:

It is not a platform language. Thus just like any guest language brings its own tooling, idiomatic library wrappers around platform libraries, an additional code generation layer to debug, having to write FFI (or type declarations to platform libs).

Having said this, I do use TypeScript in the context of Angular or BabylonJS, but that is because those frameworks are the "platform".

1 comments

Typescript doesn’t really do code generation, it transpiles via pure type erasure unless you are targeting an older JS runtime.
Which is what almost everyone does, because we don't control what browser customers use.
Yes, sort of. I don't bother with it since I just develop demos.

Anyways, it doesn't really matter that much given source line annotations. I wish TypeScript went with some more aggressive sugar so we could have nice things like operator overloading.