uhn 🥺
9d 11h ago by lemmy.blahaj.zone/u/not_IO in programmer_humor@programming.dev from lemmy.blahaj.zone
https://gts.apicrim.es/@awoo/statuses/01KJ63PQJVH2MH1F87B0K4VW9T
try {
anal();
} catch() {
std();
}
try {
anal();
} catch (HIV) {
die('wear a condom next time');
}
That's legacy code from the 80s. Please update it when you get the chance.
try {
anal();
} catch (HIV) {
loop {
sleep(1000000000);
if HIV.has_cure {break}
}
}
I will use this to make my code unattractive for AI.
KISS in unsafe blocks does make sense.
Pregnant ¯\_(ツ)_/¯
I think that's the result of dependency injection.
👉👈
uWu what’s this?
The unsafe rust keyword basically just lets you declare a scope in which some memory checks do not need to pass for the program to compile.
Some people write their entire codebase within those parentheses.
me. I'm talking about me
Why?
They like to live dangerously unsafely
Nah I know I was just shitposting lol
Also exists in C#, where it allows you to use pointers.
:3 idk should we try the unsafe code?
You can use me after free() all you want, babe
It would turn into a prince! An unstable prince of undefined behavior.
Reply hazy, try again.
(eventually something will catch)