Comment

Comment by pducks32

This is super fantastic. Well written and just the right amount of approachfulness and wit. Sometimes articles about things like this go too far into metaphor and lose the reader. I'd recommment going over

    fn mv_mutable(mut a : MyThing) {}
a little bit as in when you might want to do this and especially

    fn mutable_ref_mutable(mut a : &mut MyThing) {}
as I write a lot fo rust and still never understand how this works or why its useful. Lastly maybe an explainer of conforming to `Copy` and if you should do this because I believe currently the recommendation is conform to it for any type you can and I still have to stop and think how that's more performant. But again really great article, I bookmarked it for reference ;)
parent pducks32 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton