News for hackers. Stuff that matters.
Re:Rustc: Add do yeet expressions to allow experimentation i... by efaref on Friday May 06, 2022 @07:41AM (#31283963)
It's not necessarily a "re-"throw. It could just be a throw of a newly detected error, like:

    try {
        if bad_thing {
            do yeet Error::new(...);
        }
        carry_on()
    }
Just plain "throw" would probably be fine, but I understand not wanting to bikeshed it at this stage.

Weirdly, "yeet" really does convey the sense of "just give up and chuck this thing back instead" that makes it a reasonable nice converse of "try", i.e. "try { yeet }".

There are no comments on this comment yet.