-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add "some" as a doc alias for "any". #86554
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Here is someone that was looking for "some": https://internals.rust-lang.org/t/add-some-function-to-iter/14902 |
I think we cannot accept new aliases right now, see #84474 (comment). |
I understand that slippery slope, but I think this one may still be worth slipping in to pair with the alias on "all". |
Hmm, I don't have a strong understanding/opinion here but I agree that this keeps consistency with #81697. Anyway I nominated the subject for the next t-libs meeting (rust-lang/libs-team#18) so someone from t-libs will handle this once it gets a consensus. |
Revert "Add "every" as a doc alias for "all"." This reverts commit 3545036 (rust-lang#81697) for "every" and closes rust-lang#86554 in kind for "some". The new [doc alias policy](https://std-dev-guide.rust-lang.org/documentation/doc-alias-policy.html) is that we don't want language-specific aliases like these JavaScript names, and we especially don't want to conflict with real names. While "every" is okay in the latter regard, its natural pair "some" makes a doc-search collision with `Option::Some`. r? `@m-ou-se`
Revert "Add "every" as a doc alias for "all"." This reverts commit 3545036 (rust-lang#81697) for "every" and closes rust-lang#86554 in kind for "some". The new [doc alias policy](https://std-dev-guide.rust-lang.org/documentation/doc-alias-policy.html) is that we don't want language-specific aliases like these JavaScript names, and we especially don't want to conflict with real names. While "every" is okay in the latter regard, its natural pair "some" makes a doc-search collision with `Option::Some`. r? ``@m-ou-se``
This matches Array#some in JavaScript.
See also #81697 for the alias between "every" and "all".