
April 30, 2009
5:18 p.m.
spir <denis.spir@...> writes:
now I wonder whether it's really worth it. Because usually it's a very simple thing to implement -- often two obvious lines of code -- and easy to
understand, even for someone who does
not know the principle yet.
Well, for one, a generic implementation may have to be thread-safe. Also, while it's easy to implement, it's the kind of useful primitive - like enumerate() and others - which is nice to have builtin in the language or the standard library. Regards Antoine.