snaggen to RustEnglish · 8 个月前[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comexternal-linkmessage-square19linkfedilinkarrow-up155arrow-down10
arrow-up155arrow-down1external-link[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comsnaggen to RustEnglish · 8 个月前message-square19linkfedilink
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up6·8 个月前Exactly. If there’s only one thing I could bring from Rust into another language, it would be Mutexes. It’s so nice to guarantee safe access to data.
minus-squarenouslinkfedilinkEnglisharrow-up7·edit-28 个月前Rust mutexes would be nice. But I think for me that one thing for me would be its enums.
minus-square5C5C5Clinkfedilinkarrow-up6·8 个月前But only if pattern matching were included, otherwise they would be as unpleasant as C++'s std::variant.
Exactly. If there’s only one thing I could bring from Rust into another language, it would be Mutexes. It’s so nice to guarantee safe access to data.
Rust mutexes would be nice. But I think for me that one thing for me would be its enums.
But only if pattern matching were included, otherwise they would be as unpleasant as C++'s
std::variant
.