4 ms·
It's just fancy documentation. It doesn't contribute to behavior at all. Typescript can describe polymorphism, lamely, but it can't drive it.
by likeclockwork 4y ago
It's just fancy documentation. It doesn't contribute to behavior at all. Typescript can describe polymorphism, lamely, but it can't drive it.
- nawgz 4y ago> It doesn't contribute to behavior at all I agree that TypeScript, in and of itself, doesn't change the way the code executes. This is self-evident. But the idea that that makes it simply "fancy documentation" is hilarious. I have never seen documentation that can tell you at compile-time how your code will behave, it's fundamentally stupid to argue that static type checking is in any way comparable with documentation