this post was submitted on 25 Aug 2023
601 points (94.8% liked)

Programmer Humor

32472 readers
949 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 36 points 1 year ago (2 children)

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

[โ€“] [email protected] 22 points 1 year 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

[โ€“] [email protected] 5 points 1 year ago (1 children)

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

[โ€“] [email protected] 4 points 1 year 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)