|
|
|
|
|
by echelon
490 days ago
|
|
> How many of those advanced concept in Rust such as borrow checker & lifetime could be avoided as a beginner? As a beginner, you can avoid references (&) and simply clone() everything when it gives you trouble. If you start off by writing simple Actix/Axum web services instead of manually multithreaded apps, the problem domain is inherently linear and you'll avoid lifetimes and the borrow checker almost entirely. This lets you feel productive while getting a feel for the rest of the language features. Don't do this once you learn the ropes of the borrow checker, of course. Once you grok it, the borrow checker is almost second nature. |
|