Iterators and Ranges: Comparing C++ to D to Rust

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jun 16 11:08:52 UTC 2021


On Wednesday, 16 June 2021 at 10:53:26 UTC, Guillaume Piolat 
wrote:
> It's a healthy reminder of just how complicated everything is 
> in C++, often for no good reason.

That statement is true for some things, but not really in this 
case. He focused on STL style table-pointers. Which is a 
different concept.

In modern C++ you have ranges and generators. C++ generators are 
easier to write than D ranges, not much more difficult than 
generators in Python.



More information about the Digitalmars-d mailing list