3 ms·
Meh. you can do the same thing in Python if you really want - there are dynamic interpreter shims that can do this. The point is that it is not expected by def
by ledauphin 5y ago
Meh. you can do the same thing in Python if you really want - there are dynamic interpreter shims that can do this.
The point is that it is not expected by definition, since by definition, static != runtime.
- lolinder 5y agoYou're assuming that type hints are by definition static-only. There's no particular reason why type hints can't be both statically and dynamically enforceable, as they are in PHP.