1. 49
    1. 13

      I think it would be very funny if a language used yeet instead of throw.

      1. 9

        I’ve got git aliases set up for yeet == push and yoink == pull for this precise reason :)

        1. 8

          Nice!

          I have discovered that you can do const c╯°□°ↄ╯ = throw in Julia, which is pretty fun :)

      2. 3

        Perl has a Carp module that clucks and croaks.

      3. 1

        Lolcode https://github.com/justinmeza/lolcode-spec/blob/master/v1.2/lolcode-spec-v1.2.md has not defined exceptions yet and it’s been written up before yeet was a meme, so there’s a chance for an update. If you ever wanted to YEET a BUKKIT OF YARN, now’s your chance.

    2. 8

      I’m not sure about the “satire” tag; my impression is the proponents are deadly serious. You can bet I’d use it too with the number of times I’ve written return Err(something).

      1. 5

        This isn’t a new phenomenon :) From http://www.catb.org/jargon/html/H/ha-ha-only-serious.html

        Indeed, the entirety of hacker culture is often perceived as ha-ha-only-serious by hackers themselves; to take it either too lightly or too seriously marks a person as an outsider, a wannabee, or in larval stage.

      2. 5

        No, and it is probably for the best. yeet is just a placeholder term to prevent bikeshedding and preventing progress on a legitimate (and very cool) feature, not a serious language proposal.

        Not serious, but I love the idea of using a nonsense word to prevent bike shedding. Every time someone says “Well, I prefer…”, they can be informed that no, this isn’t the final keyword and that the final keyword will be decided after the semantics are worked out.

      3. 3

        Agreed, this is a serious albeit humorous campaign. BTW you can suggest removing that tag via the “suggest” link under the headline

      4. [Comment removed by author]

      5. 1

        As much as I appreciate the humor, and the cleverness of the yeet placeholder to discourage bike shedding, is it worth adding special syntax to the language to save on writing a couple of parens? It definitely seems unnecessarily magical to me.

        yeet e;
        throw e;
        Err(e)?;
        return Err(e);
        

        These are all the same, yes?

        1. 2

          These are all the same, yes?

          Not really, there are fine differences. The last one wouldn’t do an .into() conversion argument, the last two only work for result, while the first two work for any try type. That is, yeet; would return None in a context of a function that evaluates to Option.

          1. 1

            Sure, but couldn’t you also do None?; which is the same amount of chars as throw; and more clear?

            1. 2

              I don’t have discussable opinion about this question, I can only comment on sameness :)

    3. 8

      I don’t really have a say into what the Rust community decides, but I’m predicting that “yeet” as a term will age spectacularly badly. It would be like naming a keyword “groovy” in the 1970s and still have to live with it today.

      1. 32

        If it’s anything like Groovy, we’ll have a mildly successful programming language named ‘yeet’, running on the JVM in about 30 years.

        1. 2

          The JVM will be around in 30 years?!… wait, it probably will.

      2. 9

        Yeah, it’s a good thing the field of computer programming avoided becoming saturated with neologisms from the 1970s.

        :)

    4. 3

      I have so far not been motivated enough to learn Rust, despite some messing about, but if yeet gets actively adopted into the language, I’m more likely to do so by some small but real amount.

    5. 3

      I’ve never heard the term “yeet” before, in any context? What is it slang for?

      1. 1

        I had to look it up too. Here is my finding: https://knowyourmeme.com/memes/yeet

      2. 1

        according to urban dictionary to throw with force :~)

        1. 5

          It originated from this video specifically.

    6. 2

      Now for the pressing question - what is “yeet” in past tense? Yote?

      1. 3

        Yeet / yote / yeeten - I’m totally for that version.

      2. [Comment removed by author]