Opposition to Python type hints
Opposition to Python type hints
Posted May 7, 2015 10:58 UTC (Thu) by rsidd (subscriber, #2582)Parent article: Opposition to Python type hints
I already use python with optional typing. It's called cython and it works very well right now. Put the typed stuff in a module and import it into python -- it "just works", it catches type errors, and the speedup can be significant. A few years ago Guido seemed unconvinced but said it seems perfect for the scientific world, and success there would perhaps persuade him. The proposal was to replace selected stdlib functions with cython versions, starting perhaps with the enthought version or other scientific distros. Success there, he said, may help persuade him, but I guess that didn't happen. I wish, at least, there had been some convergence in the proposed typing syntax.