TootSweet@lemmy.world to Programming@programming.devEnglish · 3 days agoThe Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blogblog.daniel-beskin.comexternal-linkmessage-square10fedilinkarrow-up198arrow-down12
arrow-up196arrow-down1external-linkThe Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blogblog.daniel-beskin.comTootSweet@lemmy.world to Programming@programming.devEnglish · 3 days agomessage-square10fedilink
minus-squareMichal@programming.devlinkfedilinkarrow-up3·2 days agoInteresting that you brought up finally. I was learning Rust the last two days and didn’t realise it was missing. There may be some other way of handling it.
minus-squaresetsubyou@lemmy.worldlinkfedilinkarrow-up3·2 days agoscopeguard would be one way to get defer in Rust
Interesting that you brought up
finally. I was learning Rust the last two days and didn’t realise it was missing. There may be some other way of handling it.scopeguard would be one way to get defer in Rust