[Issue 10009] foreach_reverse and AA.byKey/byValue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 29 16:06:08 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10009



--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-04-29 16:06:07 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > I think foreach_reverse was only ever meant to be used with arrays (and is
> > scheduled for deprecations), for ranges you can use retro() from std.algorithm.
> 
> I have hundreds of usages of foreach_reverse in my D2 codebase. You aren't
> going to deprecate it. retro() is not nearly as efficient for arrays.

Why is retro less efficient though?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list