[Issue 5691] walkLength() compatible with opApply()
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Dec 7 06:30:08 PST 2015
https://issues.dlang.org/show_bug.cgi?id=5691
--- Comment #18 from Steven Schveighoffer <schveiguy at yahoo.com> ---
FWIW, I agree with Andrei here (now). For one thing, walkLength would have to
add the complexity of trying to infer the right parameters to pass to foreach.
opApply has some usefulness, but much of it has been eroded. There are only a
couple of advantages left: 1. ability to use recursion during iteration, 2.
overloading based on loop variable types.
--
More information about the Digitalmars-d-bugs
mailing list