[Issue 11555] std.algorithm.reverse should return the just-reversed range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 21 03:20:00 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11555



--- Comment #3 from bearophile_hugs at eml.cc 2013-11-21 03:19:53 PST ---
(In reply to comment #2)
> I like the reverse vs. reversed idea from Python. Leave reverse as-is and
> provide reversed that only returns a new result (no side effects on backing
> sequence). That way I won't have to do .dup in my example. Win-win.

I prefer reverse() to just return the range despite its uncleanness, or
reverse().release to return it.

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


More information about the Digitalmars-d-bugs mailing list