Ranges

dsimcha dsimcha at yahoo.com
Fri Jun 19 10:46:20 PDT 2009


== Quote from Yigal Chripun (yigal100 at gmail.com)'s article
> personally, I think opApply should be removed. it provides "push" style
> iteration which should be provided as a "each" method of the container.
> the "pull" style of ranges should be used with client side looping.

But the beauty of a lot of this stuff is that the syntax of iteration stays the
same no matter how it works under the hood (builtins, ranges, opApply).  This is
important for both generic programming and programmer convenience.



More information about the Digitalmars-d mailing list