-
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
Tracking Issue for ops::Yeet
(feature(try_trait_v2_yeet)
)
#96374
Comments
Add `do yeet` expressions to allow experimentation in nightly Two main goals for this: - Ensure that trait restructuring in rust-lang#84277 (comment) doesn't accidentally close us off from the possibility of doing this in future, as sketched in https://rust-lang.github.io/rfcs/3058-try-trait-v2.html#possibilities-for-yeet - Experiment with the *existence* of syntax for this, to be able to weight the syntax-vs-library tradeoffs better than we can right now. Notably the syntax (with `do`) and name in this PR are not intended as candidates for stabilization, but they make a good v0 PR for adding this with minimal impact to compiler maintenance or priming one possible name choice over another. r? `@oli-obk` The lang `second` for doing this: rust-lang/lang-team#160 (comment) Tracking issues - Lang, rust-lang#96373 - Libs-api, rust-lang#96374
This comment was marked as spam.
This comment was marked as spam.
As much as I love the name |
I really don't think that the name should be any different from what it is in most other languages. If |
The word Personally, using slang words in programming language feels really unprofessional. Perhaps it makes sense to be used in some esolangs but not in the language used by mostly mature (as in age) community and big tech companies such as Mozilla, Twitter, Google, Microsoft and others. |
I think it should be either |
"Yeet" was chosen as a placeholder name to prevent bike-shedding and make room for implementation unhindered. My understanding is that there will be a time to voice what you think the keyword should be, but for now, let's yeet those lines of inquiry. |
And yet there appears to be a lot of bike-shedding.. I think it backfired... |
With the unfortunate side-effect of planting a highly noticeable name - and accompanying link to this issue - in the It's reassuring to see "at the very least it will not stabilize under the name Yeet" in the description, but it's an unnecessary distraction from whatever promped the aforementioned docs.rs browsing to begin with. |
I think it was chosen, so work can be done before bikesheding ends. Bikesheding itself is unavoidable. |
I think what was meant was that the author didn't want to bikeshed, so it was named the first thing that came to mind. Perhaps the thought that giving it that name would mean that the main thing someone who doesn't know much about the implementation or what it's for would be able to do nothing but bike-shed the name. And would happily do so. |
Add `do yeet` expressions to allow experimentation in nightly Two main goals for this: - Ensure that trait restructuring in rust-lang/rust#84277 (comment) doesn't accidentally close us off from the possibility of doing this in future, as sketched in https://rust-lang.github.io/rfcs/3058-try-trait-v2.html#possibilities-for-yeet - Experiment with the *existence* of syntax for this, to be able to weight the syntax-vs-library tradeoffs better than we can right now. Notably the syntax (with `do`) and name in this PR are not intended as candidates for stabilization, but they make a good v0 PR for adding this with minimal impact to compiler maintenance or priming one possible name choice over another. r? `@oli-obk` The lang `second` for doing this: rust-lang/lang-team#160 (comment) Tracking issues - Lang, rust-lang/rust#96373 - Libs-api, rust-lang/rust#96374
I'm not sure about this being a feature. The question mark operator signals the intent to return well enough, and while using the Err variant is more verbose, I think it's a decent enough way to handle errors. If this feature was to ever be added however, I would use the yeet keyword since it's more fun. |
When are we stabilizing the yeet keyword :P |
Feature gate:
#![feature(try_trait_v2_yeet)]
This is a tracking issue for standard library additions related to #96373, which for now means the
ops::Yeet
struct and relatedimpl
s.It currently exists experimentally. Per the lang process, this cannot go further than experimenting without an approved RFC -- and will certainly not stabilize under the name
Yeet
. Please try this out and give experience reports, but be aware that it may well change drastically or be removed entirely.Public API
Steps / History
do yeet
expressions to allow experimentation in nightly #96376Unresolved Questions
The text was updated successfully, but these errors were encountered: