little_ferris@programming.dev to Rust@programming.devEnglish · edit-216 days agoWhat are some mind blowing Rust tricks?message-squaremessage-square52fedilinkarrow-up166arrow-down12file-text
arrow-up164arrow-down1message-squareWhat are some mind blowing Rust tricks?little_ferris@programming.dev to Rust@programming.devEnglish · edit-216 days agomessage-square52fedilinkfile-text
If we were to create a Rust version of this page for Haskell, what cool programming techniques would you add to it?
minus-squaresolrize@lemmy.worldlinkfedilinkarrow-up1·15 days agoHere’s another Haskell example where I’d be interested to see a Rust counterpart. It’s a red-black tree implementation where the tree invariants are enforced by types. The code would less ugly with more recent GHC features, but same idea. https://gist.github.com/rampion/2659812 https://old.reddit.com/comments/ti5il
Here’s another Haskell example where I’d be interested to see a Rust counterpart. It’s a red-black tree implementation where the tree invariants are enforced by types. The code would less ugly with more recent GHC features, but same idea.
https://gist.github.com/rampion/2659812
https://old.reddit.com/comments/ti5il