3 ms·
You say that as fact but you must know it is a matter of opinion: I would say you should match the language idioms. For example, Python iterators and generators
by esrauch 10y ago
You say that as fact but you must know it is a matter of opinion: I would say you should match the language idioms. For example, Python iterators and generators work by raising/throwing when there are no more items: it is fully expected and will always happen when you write a for-in loop.