3 ms·
And really it's not so much fighting the compiler as it's understanding your code better—in ways that help you even when writing C. The times that you do fight
by bonzini 2y ago
And really it's not so much fighting the compiler as it's understanding your code better—in ways that help you even when writing C.
The times that you do fight the compiler it will suggest the right thing (add clone, add &, add *, import a type or trait).
- kstrauser 2y agoThat's been my experience. The troubles I've had with Rust were when I was trying to do things the way I would've in C, and either rustc or cargo clippy told me that my idea is bad and there's a better way. I feel like I've learned a lot about better coding in general from it.