ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 2 days agoAll Borrow Checkers Are Bastards (ABCAB - 12312)lemmy.worldimagemessage-square7fedilinkarrow-up137
arrow-up137imageAll Borrow Checkers Are Bastards (ABCAB - 12312)lemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square7fedilink
minus-squareflamingo_pinyata@sopuli.xyzlinkfedilinkarrow-up50·2 days agoThe whole point of it is to prevent you from doing stupid shit. Yes it’s annoying. But you can’t handle memory management on your own, no matter how much you think you can. It’s either that or garbage collection. Choose which one you hate less.
minus-squareSonotsugipaa@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up26·2 days agoYou’ll have to pry my ability to do stupid shit from my cold dead handsääääääää
minus-squareBitUnWise@programming.devlinkfedilinkarrow-up2·20 hours agoThat’s what the unsafe keyword is for. HOW DARE THE BORROW CHECKER QUESTION MY DECISION TO RETURN A REFERENCE TO A TEMPORARY!
minus-square[object Object]@lemmy.calinkfedilinkarrow-up13·2 days agoI mean, I really like the zig approach. It usually turns into “the caller is responsible for managing the memory” But then when I’m the caller I sweat a little.
minus-squareKacarott@aussie.zonelinkfedilinkarrow-up21·2 days ago when I’m the caller I sweat a little I too much prefer to send a text or email.
minus-squareZILtoid1991@lemmy.worldOPlinkfedilinkarrow-up9·2 days agoPolice fans say the same thing about the police.
The whole point of it is to prevent you from doing stupid shit. Yes it’s annoying. But you can’t handle memory management on your own, no matter how much you think you can.
It’s either that or garbage collection. Choose which one you hate less.
You’ll have to pry my ability to do stupid shit from my cold dead handsääääääää
That’s what the unsafe keyword is for. HOW DARE THE BORROW CHECKER QUESTION MY DECISION TO RETURN A REFERENCE TO A TEMPORARY!
I mean, I really like the zig approach. It usually turns into “the caller is responsible for managing the memory”
But then when I’m the caller I sweat a little.
I too much prefer to send a text or email.
Police fans say the same thing about the police.