-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Cleaning #702
Comments
Hi @jswrenn.
Nice idea. You know my stance regarding "ill-formatted" PRs: I'd prefer a solution that accepts such PRs and applies rustfmt afterwards, but since we had so many huge PRs because people simply run rustfmt on save, I'm by now fine with any pragmatic solution here.
Nice.
Controversial indeed. Honestly I was not enthusiastic when I read it, but I'm sure you bothered yourself a lot about this. Moreover, I like problems to be solved where they should be solved - and if
I was not fully aware of the fact that IMHO, We can go in that direction, but we should make this explicit. In addition: If we are already the "experimental tl;dr: Your suggestion is fine with me, and our README should explicitly state our rationale. I do not know what time window you imagined, but, as always, a bit more feedback may be helpful here. |
I'm also not particularly enthusiastic about this solution, but it's an immediate thing we can do to help reduce conflicts between
Yes, I think we should! The stabilization of const generics is a compelling reason, on its own, for us to bump the MSRV. |
There is quite some changes to be released since "0.10.5" right? I think all that should be released, then only then make a release with |
@Philippe-Cholet Agreed! @Philippe-Cholet, @phimuemue I'm weighing whether we should include a transitional release, in which all of the methods are present with both their current names (but deprecated) and their |
I guess the major con would be the "copy/paste" work on our end (and delete later), and the major pro would be for users to have time to adapt especially if they did not mention a precise version in their @jswrenn A bit off-topic but since you seem to handle version bumps, I would like to point out my recent #738 for you to think about updating this place in the future. |
I tried to automate the process of introducing the Is there some trick that we could use? I tried the following, but this did not work:
I somewhat like the reasoning to discourage bad ideas, but I am not sure this is universally bad: I pretty much everywhere use That said: If we find an easy way of deprecating items, let's do it. Otherwise I'm fine with releasing releasing the (I think I once heard of a tool that can operate specifically on rust code to help with these transformations. It apparently accepted a macro-like expression that you could match against your code and have the engine work on the AST of the matched part. Maybe this could help, but I do not remember the details anymore.) |
I was more thinking of
The question is how to generate that. I first thought of the Then there is the possibility of a temporary proc-macro to do Finally, still with syn/quote as temporary dependencies, a proc-macro
It would be a simple enough proc-macro (I made a more generalized version within 100 lines of code, small doc included, see details below). It basically extends to
`deprecated_alias` implementation (click)It's still a draft but it should work just fine.
PS: Add my macro on previously deprecated methods would result in conflicts ( |
I just drafted a document reviewing the situation: https://hackmd.io/@jswrenn/HyKLk_1Cn Before we embark on a renaming on our end, I think I will at least try to implement RFC2845. |
I'm planning on kicking off a 'spring cleaning' of itertools in the next week or two. My goals are to:
More controversially, I suspect, I'd like to propose that we prefix all itertools methods with
it_
. The stability hazard caused by itertools conflicting with new additions toIterator
:I had hoped that any number of language-level fixes for this issue would have landed by now, but no progress has been made on this. We can take action ourselves by prefixing itertools methods with
it_
. I'd like feedback on this proposal.cc @phimuemue
The text was updated successfully, but these errors were encountered: