3 ms·
Knowing in my head and having it tab out are two different things. Interfaces will without a doubt tell you what you can do with a given object. With polymorph
by Programmatic 10y ago
Knowing in my head and having it tab out are two different things.
Interfaces will without a doubt tell you what you can do with a given object. With polymorphism you most assuredly know what types the arguments are inside each signature you write.
Function annotations look like shit[0] and are not guaranteed to mean the same thing across projects.
Don't get me wrong, I love Python and its idioms and have been using it for a rather long time. It pays the bills and I am productive in it. I just think that I've outgrown its implicit typing when I step into an explicitly typed language using modern tools and enjoy myself.
[0]: https://www.python.org/dev/peps/pep-3107/#syntax https://www.python.org/dev/peps/pep-3107/#syntax