snaggen@programming.dev to Rust@programming.devEnglish · 2 months ago[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comexternal-linkmessage-square19fedilinkarrow-up151arrow-down10
arrow-up151arrow-down1external-link[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comsnaggen@programming.dev to Rust@programming.devEnglish · 2 months agomessage-square19fedilink
minus-squareBB_C@programming.devlinkfedilinkarrow-up8·edit-22 months agoIf lock-ergonomicsⓒ is as relevant to you as indexing, you’re doing it wrong. I would rather take indexing returning Results than the other way around. One can always wrap any code in {||{ //.. }}() and use question marks liberally anyway (I call them stable try blocks 😉).
If lock-ergonomicsⓒ is as relevant to you as indexing, you’re doing it wrong.
I would rather take indexing returning
Result
s than the other way around.One can always wrap any code in
{||{ //.. }}()
and use question marks liberally anyway (I call them stable try blocks 😉).