Comment on Mypy - An experimental Python variant with dynamic and static typingComments−jhrobert13yWhat about "hints"? def foo( often int n ): This one would generate both the dynamic & the static versions.Once all call sites stop using the dynamic version, one can move on to strict typing (and remove the "often" qualifier), if such is the goal.Think of it like the old "register" hint in C code (now obsolete).
Comments
What about "hints"?
This one would generate both the dynamic & the static versions.Once all call sites stop using the dynamic version, one can move on to strict typing (and remove the "often" qualifier), if such is the goal.
Think of it like the old "register" hint in C code (now obsolete).