4 ms·
My point I guess was that with proper abstractions and duck typing you really don't have to care about the type. I only notice something isn't a duck when I tr
by phamilton 14y ago
My point I guess was that with proper abstractions and duck typing you really don't have to care about the type. I only notice something isn't a duck when I try to use it like a duck and it fails - which is surprisingly infrequent.
- ww520 14y agoIt becomes difficult to tell it's a duck when reading code, which was the original complaint. Duck type works when you actually try calling it.