Everyones first language should be brainfuck CMV.
As much as this hurts,
yeet;
as an aliasthrow;
is hilariousFunnily enough, that is a keyword in rust.
(it’s a placeholder to remove any bikeshedding)
Of all the gen z lingo yeet is the best.
You can yoink that word from my cold, dead hands!
I really really dig the fuckaround/findout. It paints the try/catch with a more dreadful undertone and reeks of mystery.
Yeah, I love that one.
“Try” is too hopeful. “fuck_around” makes it clear that you know what you’re doing is dangerous but you’re going to do it anyhow. I know that in some languages wrapping a lot of code in exception blocks is the norm, but I don’t like that. I think it should be something you only use rarely, and when you do it’s because you know you’re doing something that’s not safe in some way.
“Catch” has never satisfied me. I mean, I know what it does, but it doesn’t seem to relate to “try”. Really, if “try” doesn’t succeed, the corresponding block should be “fail”. But, then you’d have the confusion of a block named “fail”, which isn’t ideal. But “find_out” pairs perfectly with “fuck_around” and makes it clear that if you got there it’s because something went wrong.
I also like “yeet”. Partly it’s fun for comedic value. But, it’s also good because “throw” feels like a casual game of catch in the park. “Yeet” feels more like it’s out of control, if you hit a “throw” your code isn’t carefully handing off its state, it’s hitting the eject button and hoping for the best. You hope there’s an exception handler higher up the stack that will do the right thing, but it also might just bubble all the way up to the top and spit out a nasty exception for the user.
The whole thing was pretty damn good all the way through. The only thing that had me wondering was
Tea
Until it got to
SpillTea
Well played.
NGL, that helped me actually understand the original function. It’s been over a decade since I’ve touched anything related to C.
the suspense!
Indeed. I was unfair of me to pick only one favourite, as there are more candidates :)
just what you want from code !
Exactly!
Ugh. Just
its_giving rizz ratios vibe;
No more needless nesting plz
Considering
vibe
is probalbyfloat
, I doubt any exceptions can be thrown there, you can eliminate another useless scope.Even if it’s not
float
, I’d consider burning alive anyone who overrides an operator like this anyway.Honestly, that’s about an inch away from Python…
Its literally bash
I’m speaking from a descriptive naming concept.
It’s so painfully good.
Aliasing no_cap and cap to true and false…
I might have to steal that…
i hate it so fucking much
That’s way better than my emoji based programming language.
Too many capital letters in the gen z version.
That’s what we Do.
I’ve seen forms of this joke quite a lot in the last few years, and it never fails to make me laugh.
play_stupid_games { // ... } win_stupid_prizes(thePrize) { // ... }
FAFO block passes better
@sjmarf And now someone is preparing a PR on C#’s GitHub issues… well done, well done.
I’d take that
yeet
instead ofreturn
…Just needs a rap about the fun in functions performed by 60-year-old seniors
slowly steps back and returns to basic and z80 assembly
*Gen Z assembly
*z18 assembly