this post was submitted on 10 Sep 2023
113 points (98.3% liked)
Out of the loop
10652 readers
74 users here now
A community that helps people stay up to date with things going on.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You are making a lot of false assumptions about typescript and bringing in a lot of outside problems that don't have anything to do with the language. Try working with typescript. It is a strict super set of javascript. So if you like vanilla JS, you can just keep writing it, then slowly introduce the syntactic sugar that typescript provides. I did the javascript and coffee script thing for a long while, and typescript is just the better way for most use cases at this point.
My concerns about it don't have anything to do with the language. More the tooling that would come with it.
If browsers natively understood TypeScript, I'd use the type-safety features. But I don't want things like the TypeScript compiler or Node to be a dependency of my build process. Not if the only payoff is type safety.