4 ms·
Just a few days ago Guido proposed to adopt the Mypy syntax for type annotations in Python 3.5. There is a big discussion going on on the python-ideas mailing l
by ceronman 12y ago
Just a few days ago Guido proposed to adopt the Mypy syntax for type annotations in Python 3.5. There is a big discussion going on on the python-ideas mailing list about that and the general idea of having optional static typing in Python:
https://mail.python.org/pipermail/python-ideas/2014-August/028618.html https://mail.python.org/pipermail/python-ideas/2014-August/0...
https://mail.python.org/pipermail/python-ideas/2014-August/028742.html https://mail.python.org/pipermail/python-ideas/2014-August/0...
Recommended reading for those interested in the topic.
- bsaul 12y agoThis is probably the best thing i've heard about python in the last 2 years. Guido's point are all 100% valid. Python should take example on Typescript. It's light and smart. And that's enough to cover 99% of the cases. Just let me specify that function foo's first parameter is an array of "stuff", and i'll be the happiest man. Leave the complicated cases for future versions.
- oblique63 12y agoBeen using optional typing for almost a year now with Dart, and it's pretty awesome. Really hoping this comes to python!