2 ms·
You'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,
by lolinder 5y ago
You'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.