[Issue 12293] forward should be moved to std.functional

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 26 11:07:55 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12293

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Andrej Mitrovic from comment #2)
> No, I've changed the title. See the history here:
> https://issues.dlang.org/show_activity.cgi?id=12293

If the reason comes from just your feeling, I cannot agree with the title.

std.algorithm.forward is in the same category of std.algorithm.move and swap.
Why they are in std.algorithm module? Because in C++03, std::swap was in
<algorithm> header. So in D, swap, move, and forward are in std.algorithm.

I know that std::swap, move, and forward are in <utility> header in C++11.
But, std.functional module is for "functional programming" utilities. From the
perspective, swap, move, and forward are not directly related to functional
programming IMO. So, I think that moving it to the module is unreasonable
change.

--


More information about the Digitalmars-d-bugs mailing list