Previous version of generators has a design problem – it required some special stop value. That is the same kind of problem as with iterators in C++ – they require special end() value. But in some cases it is not even possible to choose such a value. So is this new version: // generator/continuation for…
Generators in C++ revisited.
Posted on