News for hackers. Stuff that matters.
Re:Mypy - An experimental Python variant with dynamic and st... by jhrobert on Sunday September 23, 2012 @10:16PM (#4562915)
What 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).

There are no comments on this comment yet.