Especially for “typed” languages that have done typing very wrong, as Python or Typescript.
Especially for “typed” languages that have done typing very wrong, as Python or Typescript.
I won't go as far as to say this is awful but I will say, why? If you want or need this, please change languages. There are so many strongly typed languages out there.
As for Typescript, everything is wrong. Interfaces can’t describe static methods, can’t declare what exceptions a method throws, etc. not even gonna mention type variance because it’d be a waste of time.
I used to study a lot type systems in my youth. Correct statically typed languages are not practical (think Scala). Practical languages can’t be correctly typed (think Go or even Java). There’s always a compromise. That’s why project like this one makes me chuckle, the idea of using statically typed languages is to introduce “some” safety and correctness, so trying to go the other extreme makes no sense.