3 ms·
I just wonder when someone will build a tool to annotate Ruby, Python source code with var types gathered during run-time. If C has Valgrind then dynamic typed
by dgregd 13y ago
I just wonder when someone will build a tool to annotate Ruby, Python source code with var types gathered during run-time.
If C has Valgrind then dynamic typed languages should get something for the types.
- Erwin 13y agoPyCharm does this. In addition to doing type inference while you have your project open, you can while debugging it run it and make it collect type information. That's quite a bit slower than usual, but once done you will get extra type hints of possible types passed to your functions. http://blog.jetbrains.com/pycharm/2013/02/dynamic-runtime-type-inference-in-pycharm-2-7/ http://blog.jetbrains.com/pycharm/2013/02/dynamic-runtime-ty...
- yareally 13y agoPython 3.0 has the Gradual module[1][2]. [1] http://ecee.colorado.edu/~siek/gradualtyping.html http://ecee.colorado.edu/~siek/gradualtyping.html [2] https://pypi.python.org/pypi/gradual https://pypi.python.org/pypi/gradual