On Thursday, 27 March 2014 at 08:13:28 UTC, Paulo Pinto wrote:
Why not?
It is how iterators work in most OO languages.
Why not what? A query for "empty()" should not have any side
effects. In what library does that happen? Tests should in
general not have side effects unless the name suggest so.
Anyway, I wish D was more clear about use scenarios. If D is
going to be efficient in the server space then it should also
make low latency programming easier, meaning supporting async
collections out-of-the-box.