3 ms·
You might consider this too much of an edge case but what if I want to pass something that quacks like an EventLoop to Process init ?
by andybak 9y ago
You might consider this too much of an edge case but what if I want to pass something that quacks like an EventLoop to Process init ?
- crdoconnor 9y agoUnless 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.