News for hackers. Stuff that matters.
Re:Ask HN: How do I understand Rust? by joseph on Friday January 27, 2017 @10:08PM (#13504650)
> Apply functional programming idioms and use immutable data structures if you can.

This is what I've tried to do when learning Rust. However, I find it ends up more boilerplatey than a language like Haskell. I had to do lots of clone() and iter(), which cluttered up the functional idioms. Maybe I'm doing it wrong though.

Re:Ask HN: How do I understand Rust? by steveklabnik on Friday January 27, 2017 @10:17PM (#13504683)
Rust makes deep copies explicit, whereas those languages don't. So if you program in the exact same style, it will be a bit more verbose; Rust is exposing a cost here.

That said, idiomatic Rust does lean a bit more functional than many languages.