Skip to content

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jun 22, 2021

This matches Array#some in JavaScript.

See also #81697 for the alias between "every" and "all".

@rust-highfive
Copy link
Contributor

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 22, 2021
@cuviper
Copy link
Member Author

cuviper commented Jun 22, 2021

Here is someone that was looking for "some": https://internals.rust-lang.org/t/add-some-function-to-iter/14902

@JohnTitor
Copy link
Member

I think we cannot accept new aliases right now, see #84474 (comment).

@cuviper
Copy link
Member Author

cuviper commented Jun 24, 2021

I understand that slippery slope, but I think this one may still be worth slipping in to pair with the alias on "all".

@JohnTitor
Copy link
Member

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.

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jul 7, 2021
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`
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jul 7, 2021
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``
@bors bors closed this in 01474ad Jul 8, 2021
@cuviper cuviper deleted the any-some branch October 15, 2022 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants