you are viewing a single comment's thread
view the rest of the comments
[–] 36 points 2 years ago (2 children)

I have to say, I like the substitution of yeet for return. No cap.

  • source
  • hideshow 4 child comments
  • [–] [S] 22 points 2 years ago

    All of my returns are going to be yeet from now on

    My code reviewers will respond to my commits with on god 🙏

    My manager will do girl math to determine my next raise

    #zoom

  • source
  • parent
  • [–] 5 points 2 years ago (1 child)

    Rust has an RFC that wants to consider yeet as a keyword for throwing an exception, I think they're currently keeping it as a placeholder just in case

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 2 years ago

    AFAIK they're not seriously considering it as a keyword, but they agreed that in all discussion about the semantics of exceptions they will use "yeet" as a placeholder for the keyword, so people will actually discuss the semantics and not whether the keyword is gonna be "raise", "throw", "except" or whatever (so-called Bikeshed Effect)

  • source
  • parent