little_ferris to RustEnglish · edit-27 hours agoWhat are some mind blowing Rust tricks?message-squaremessage-square23fedilinkarrow-up136arrow-down10file-text
arrow-up136arrow-down1message-squareWhat are some mind blowing Rust tricks?little_ferris to RustEnglish · edit-27 hours agomessage-square23fedilinkfile-text
If we were to create a Rust version of this page for Haskell, what cool programming techniques would you add to it?
minus-squareThinker@lemmy.worldlinkfedilinkarrow-up4·4 hours agoThis could be done almost trivially using the typestate pattern: https://zerotomastery.io/blog/rust-typestate-patterns/.
This could be done almost trivially using the typestate pattern: https://zerotomastery.io/blog/rust-typestate-patterns/.