Iterators and Ranges: Comparing C++ to D to Rust
IGotD-
nise at nise.com
Mon Jun 14 22:56:29 UTC 2021
On Monday, 14 June 2021 at 13:45:14 UTC, Ola Fosheim Grøstad
wrote:
>
> E.g. his take on StopIteration in Python is not really correct
> either, you can write a generator (coroutine) with no explicit
> StopIteration (although the semantics implies a raised
> exception, but that does not mean the implementation has to).
How do we classify the iterators of Nim?
https://nim-lang.org/docs/tut1.html#iterators
It looks similar to Python and Rust. Also notice how it can use
yield like a coroutine.
More information about the Digitalmars-d
mailing list