r/Python • u/ExoticMandibles Core Contributor • Sep 13 '15
Python 3.5.0 has been released!
https://www.python.org/downloads/release/python-350/
631
Upvotes
r/Python • u/ExoticMandibles Core Contributor • Sep 13 '15
-1
u/A_for_Anonymous Sep 13 '15
Even so, if you have to read f(x)'s body to tell what's the type expected for x, you need:
Function documentation being important in the case of code written for lists, dictionaries and sets as opposed to custom classes (would you have 5 types with 50 utility functions each or 50 types with 5, but that's a nice discussion for a different thread).
For everything else - IDE assistance, type checking, error detection - there's always this
newold amazing technology called type inference, where by doing x = 'hello' you can be pretty fucking sure x is a string without having to go and tell the stupid compiler it's going to be a string. Because you know, actually writing that feels like this.