move has{Mobile,Swappable}Elements and move{Front,Back,At} to std.algorithm.mutation
Seb via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 15 11:22:22 PDT 2016
Hi all,
since this has been pending for more than one week without a lot
of interest and it's a larger deprecation, I thought I try to
ping people here.
#4170 [1] is a proposal to move moveAt, moveFront and moveBack to
std.algorithm.mutation. It also moves the two templates
hasMobileElements and hasSwappableElements.
The reasoning is that std.algorithm.mutation "contains generic
mutation algorithms" and already has move, moveAll, moveSome,
swap, swapRanges. Since #4127 [2] swapAt is there too (=publicly
documented)
The template hasSwappableElements already only calls swap from
std.algorithm.mutation.
You can find more details at [1].
The current deprecation time is two years, which imho is a bit
long, but I haven't heard a word from any maintainer on Phobos's
current deprecation policy.
[1] https://github.com/D-Programming-Language/phobos/pull/4170
[2] https://github.com/D-Programming-Language/phobos/pull/4127
More information about the Digitalmars-d
mailing list