3 ms·
Nobody is forcing you to write TypeScript like this...
by tills13 1y ago
Nobody is forcing you to write TypeScript like this...
- phplovesong 1y agoBut it is possible, and i have seen code like this (admittedly, not as complex) in production. When you have code like this is really hard to know what is really going on. Its SUPER rare you need flexibility like this in your type system, and as we all know when its doable, people will abuse it like crazy.
- tills13 1y agoYou DO need this flexibility in your type system when the underlying language is dynamic.