3 ms·
You're right, "empty list" is an imprecise description. But couldn't they have made it behave like Go channels, for example? Read it until exhaustion, then clos
by BoppreH 3y ago
You're right, "empty list" is an imprecise description. But couldn't they have made it behave like Go channels, for example? Read it until exhaustion, then close it, so that subsequent reads (or calls to 'next()') fail with something other than StopIterator.
I know it's not backwards compatible and hence a no-go now, but the original decision puzzles me.