Re:Python is two languages now, and that's great
by alanwreath on Monday February 27, 2023 @02:54PM
(#34961054)
Its worked for us when dealing with local operations vs. cloud bucket operations. Protocols also help when you really don’t care to litter your code with some vendor specific object but instead just declare what functionality should be expected from the object passed in. It helps describe what you’re doing with it anyway, it’s why typing with Iterable can be helpful if you don’t care if it’s a list, set, or tuple.
[ Parent
| on HN ]
There are no comments on this comment yet.