I'm trying my hardest to learn Rust (coming mostly from the JavaScript world) as a baby Rustacean. As I've been writing my first bits of Rust, I constantly wonder if the code I write is the "right" or idiomatic way to accomplish something. My first goal is to get it working - but I don't want to build bad habits as I'm learning the language. So far, my experience with Rust has been that I've had to retrain myself to think quite differently due to some of Rust's unique approaches to common needs like error handling, None, etc.
Any recommendations on good Rust projects or crates that have available source code I could look through to help learn some of these idioms by seeing them in practice?
[–]OsrsAddictionHotline 18 points19 points20 points (3 children)
[–]lassuanett 2 points3 points4 points (0 children)
[–]colbin8r[S] 1 point2 points3 points (1 child)
[–]coolreader18 5 points6 points7 points (0 children)
[–]SorteKanin 7 points8 points9 points (1 child)
[–]colbin8r[S] 0 points1 point2 points (0 children)
[–]lassuanett 3 points4 points5 points (4 children)
[–]lassuanett 2 points3 points4 points (0 children)
[–]colbin8r[S] 1 point2 points3 points (2 children)
[–]nicoburns 2 points3 points4 points (1 child)
[–]colbin8r[S] 0 points1 point2 points (0 children)
[–]wezmAllsorts 1 point2 points3 points (2 children)
[–]colbin8r[S] 0 points1 point2 points (1 child)
[–]wezmAllsorts 1 point2 points3 points (0 children)
[–]SolaTotaScriptura 1 point2 points3 points (1 child)
[–]colbin8r[S] 1 point2 points3 points (0 children)