TootSweet@lemmy.world to Programming@programming.devEnglish · 2 days agoThe Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blogblog.daniel-beskin.comexternal-linkmessage-square13fedilinkarrow-up1117arrow-down12
arrow-up1115arrow-down1external-linkThe Compiler Is Your Best Friend, Stop Lying to It - Daniel Beskin's Blogblog.daniel-beskin.comTootSweet@lemmy.world to Programming@programming.devEnglish · 2 days agomessage-square13fedilink
minus-squareMichal@programming.devlinkfedilinkarrow-up2·13 hours 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-up2·9 hours 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