Re:TypeScript please give us types
by vbezhenar on Friday July 07, 2023 @04:55PM
(#36638172)
If some design goals are stupid they must be changed. It's not god word. It's human word. And this human was wrong.
[ Parent
| on HN ]
This isn't just some of the design goals, type erasure is the fundamental guiding principle of TypeScript that allowed it to become successful. Throwing it away because it complicates certain programming patterns should not be done lightly.
In my opinion they are not stupid, they make a lot of sense. And many people seem to agree and use typescript. If you don’t agree, use something else. There are many alternatives, pick something that is „smart“ in your opinion.
Re:TypeScript please give us types
by chucklenorris on Friday July 07, 2023 @09:29PM
(#36640459)
Unfortunately i can't. Like most of the people here i work in a company, with other people and i can't chose $language that is less dumb for obvious reasons. Typescript IS the only practical solution for web development at scale. I'm stuck with the design philosophy of a guy that's not facing my problems and obviously doesn't care.