Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: