3 ms·
As a Rust semi-noob I do get that Rust does things differently from many other languages, and can appreciate why. But it's one thing being told "You can't do th
by KineticLensman 3y ago
As a Rust semi-noob I do get that Rust does things differently from many other languages, and can appreciate why. But it's one thing being told "You can't do this common thing in Rust", and another thing understanding what are the idiomatic alternatives that do actually work. These often seem to relate to overall program design (e.g. numbers of readers and writers of a data structure) rather than using a single alternative language construct.
YMMV but I found that 'Effective Rust' came closest to the 'what should I do instead' guidance I was looking for, in terms of getting me past some of the blockers I'd encountered. It also helped me begin to read between the lines in the Rust book and the O'Reilly book, where some quite important consequences are sometimes not explicitly spelt out.