std.algorithm: set accidentally exposed methods to private#4315
std.algorithm: set accidentally exposed methods to private#4315andralex merged 1 commit intodlang:masterfrom
Conversation
b71b04e to
53fa15b
Compare
std/algorithm/iteration.d
Outdated
There was a problem hiding this comment.
this must be a property
update:
pure nogc nothrow safe
|
I think the renames from ID to _ID are useless. That is what "this." is for. |
std/algorithm/iteration.d
Outdated
There was a problem hiding this comment.
IMO the schedule for removal is to short. Has this been discussed somewhere?
There was a problem hiding this comment.
@wilzbach typically, deprecations are between a year and two years
There was a problem hiding this comment.
AFAIK Permutations is a very recent addition and the internals of permutations where never publicly documented, that's why I thought just six months would be okay. Imho no deprecation should also be okay, because I can't imagine someone digging through the phobos source code and using the state variable.
There was a problem hiding this comment.
AFAIK Permutations is a very recent addition and the internals of permutations where never publicly documented, that's why I thought just six months would be okay. Imho no deprecation should also be okay, because I can't imagine someone digging through the phobos source code and using the state variable.
Almost one year old. If it hadn't part of a release already it would have been okay, however everything that was (even once) should follow the proper deprecation path.
I cannot imagine someone digging through the source code and accessing Dalvik's internal and modifying the system loader, yet it's done on most of the phones out there.
There was a problem hiding this comment.
but you don't know what people do.That is the point here. Just because you wouldn't, does not mean somebody else wouldn't.
53fa15b to
ccc84b2
Compare
Yes absolutely, but needed for the deprecation - otherwise you would have conflicting names.
Updated to June 2017 - is this ok? |
|
Doesn't this break l-value access to the fields in its current form? |
226f603 to
d76ed13
Compare
d76ed13 to
0c100a7
Compare
Yes it did. I still think that someone should be punished if he fiddles with that, but it now triggers proper deprecation warnings ;-) |
|
LGTM |
follow-up to #4312. This includes a couple of accidentally exposed publicly exposed methods - they weren't documented.
For permutations I added deprecations, but I would prefer if we can live without them ;-)