Move various deprecations along.#1766
Conversation
|
I suppose you followed https://github.com/D-Programming-Language/druntime/blob/master/HACKING.md#deprecation-process ? What about crc32.d ? It has been deprecated for over an year now. is there a reason it's not /won't be removed ? |
|
@Geod24 I don't know anything about that page and am not aware of any official documentation on deprecation, but I'm well aware of how we do it, because I'm the one who handles most of it. Previously, it was 6 months marked as "scheduled for deprecation," 6 months as actually deprecated, and then it was removed. However, now that we have deprecation messages and So, in general, at this point, I believe that what we're looking at is
I try and use those specific comments so that I can grep for them, but they don't always get used, so sometimes they get missed and don't get moved to the next stage of the deprecation process on time, and sometimes I forget to check for symbols that are scheduled to be moved to the next step in the deprecation process. But being a bit behind on moving stuff along generally isn't a big deal. I didn't necessary catch everything in this pull, though I tried to catch all of the deprecated symbols that didn't have the greppable comments on them. As for crc32.d specifically, it does look like I missed it (in part because it wasn't even in std, and I forgot that any module existed outside of any package like that). But I don't want to mess with any file removals in this pull. I can get that in a future pull. |
|
LGTM. |
|
Great, please rebase. |
|
Pinging 4 rebase. |
|
I'll get to this in the next few days. I'm stuck working a bunch of overtime to meet a deadline, so I've been time crunched, or I would have done it already. |
|
Make sure you ping us when its done, lest it de-syncs again :) |
Move various deprecations along.
Conflicts:
std/algorithm.d
std/zip.d
|
Wait, how did this get merged without me doing a rebase? |
|
I assume Martin edited it in the merge commit. @MartinNowak, you probably shouldn't do that. The edited code doesn't get reviewed, or put through the autotester. Very little is urgent enough it can't wait for a rebase. |
|
Maybe I should be more patient, but for trivial merge conflicts it avoids communication ping-pong and sometimes pull requests get abandoned because of this (not by you @jmdavis). |
It looks like you've erased the original author this way, which is problematic when using tools like git-blame and git-log, and might be discouraging to some people. edit: Nevermind, that's not true; I just didn't see it easily on Github because it shows up at its original date. |
|
My main concern is that the changes no longer match exactly with what is in the pull request. Merges don't always come out correctly, and this makes it easier for mistakes to slip through unnoticed. If a pull request is actually abandoned then that's a different issue, and thankfully a lot less of a problem than it used to be. |
|
I'd rather this didn't happen to my pull requests. Maybe it's the fact that Walter used to heavily edit my pull requests when merging that makes me dislike it. We should come up with an official policy on this. I would honestly prefer if pull requests were always merged with the the autotester's auto-merge, except in exceptional circumstances. |
|
It's not that I like to do this, but currently we have 109+23+79 open pull requests and most of them simply rot. |
|
@MartinNowak: it would be awesome if we figured a policy for addressing the oldest pull requests. |
|
P.S. @CyberShadow (and others too): to avoid us from getting confused from messages that disappear you can instead use a |
|
Sorry. I need to learn to double-check my conclusions before posting. This is the third time this week! |
|
Well if it's actually something newbies will run into not knowing how to use the alternative to canFind then it's an opportunity to improve the docs. |
|
Here's why I messed up this time: In DustMite, there was this line of code: This was generating a deprecation error. I looked at std.algorithm, and noticed that an overload of canFind was deprecated. However, I did not realize that only the overload that didn't take any additional parameters (which is, indeed, synonymous to |
|
Regarding, I think it's a gratuitous deprecation. |
I'm may have missing some that didn't end up with the exact comments that I grep for, but I did manage to catch several that had been missing those comments.