News for hackers. Stuff that matters.
Re:Good reasons not to use TypeScript by pjmlp on Monday February 17, 2020 @02:30AM (#22346157)
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".

Re:Good reasons not to use TypeScript by seanmcdirmid on Monday February 17, 2020 @10:35PM (#22353243)
Typescript doesn’t really do code generation, it transpiles via pure type erasure unless you are targeting an older JS runtime.
Re:Good reasons not to use TypeScript by pjmlp on Tuesday February 18, 2020 @10:24AM (#22356670)
Which is what almost everyone does, because we don't control what browser customers use.
Re:Good reasons not to use TypeScript by seanmcdirmid on Tuesday February 18, 2020 @02:48PM (#22359623)
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.