Re:TypeScript 4.1
by bobbylarrybobby on Thursday November 19, 2020 @08:31PM
(#25156483)
Presumably, to work with the original JavaScript, you still had to understand the convoluted type system that you created, or else be ok with not being able to reason about your code. At least with typescript you have the computer helping you reason about it.
[ Parent
| on HN ]
Re:TypeScript 4.1
by badlucklottery on Thursday November 19, 2020 @09:31PM
(#25156812)
Yup. It's an attempt to formalize the mess that already exists in many JS libraries.
That's why, even if I don't plan on using Typescript itself for a project, I prefer libraries that have type declarations or are natively Typescript. It shows the library authors at least attempted to understand the type system they were creating.