News for hackers. Stuff that matters.
Re:Bad TypeScript Habits by eyelidlessness on Tuesday February 02, 2021 @11:20PM (#26010571)
This isn’t actually a fault of TS, it’s an explicit goal. They design the type system not to guide usage but to make existing usage explicit and trustworthy.

The places where the type system encourage rabbit holing are almost always where bad types/APIs are already prevalent. Where you’re starting at the type level and don’t have an inclination to allow all manner of dynamic nonsense it’s not that different from types in an ML-family language.

There are no comments on this comment yet.