by patrick451 · 4y ago · 0 comments
This is such an odd claim. Mixing up a string for a list of strings, which both satisfy the iterable interface, happens all the time in python. Does the author, and his acclaimed fora simply not use python?
But those are actual valid and useful implementations of the interface, nominative typing wouldn't save you.
Not sure what scenario you're imagining here.
I'm including functions like min() there, technically it can take a string argument, but I've never wanted it to.