protocol for using InputRanges
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Thu Mar 27 05:09:29 PDT 2014
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.
More information about the Digitalmars-d
mailing list