4 ms·
Unless it's a subclass (which would pass), I don't imagine that would be at all likely. Never been much of a fan of duck typing. It only really makes sense whe
by crdoconnor 9y ago
Unless it's a subclass (which would pass), I don't imagine that would be at all likely.
Never been much of a fan of duck typing. It only really makes sense when you have objects that approximate built in types.
Take a random object with a .run() method, for example, and you don't have a fucking clue what it might be doing so there's no point interpreting that as a quack.