Feeling Rust is so difficult

I realize I'm taking you slightly out of context, but I feel this is at odds with

If you want the effortless feel of other languages, you need to at least adopt their way of modeling the problem. All those "other languages" are doing, most of the time, is making a sneaky clone while your back is turned. For example, most functional languages use some form of garbage collection, so the programmer doesn't have to think about object lifetimes; if you want the same in Rust, it's reasonable to use Rc, which can contain trait objects and is cheap to clone.

Just because Rust allows you to write super cool non-allocating zero-copy algorithms safely, doesn't mean every algorithm you write should be super cool, zero-copy and non-allocating.

10 Likes