Re:Rusty Ownership and the Lifecycle’s Stone
by pitaj on Sunday November 27, 2022 @12:10PM
(#33764533)
I don't think motorcycles are a great analogy. They're way more dangerous for the driver than a car and you have to be constantly vigilant about your surroundings.
Re:Rusty Ownership and the Lifecycle’s Stone
by vladvasiliu on Sunday November 27, 2022 @12:14PM
(#33764567)
Yeah. If you start to get a bit too confident for your level, you'll just get yelled at by the compiler instead of ending up in the ER (if you're still breathing).
But I suppose the analogy is more along the lines of "it can be intimidating at first, but you can quickly figure out how to use it reasonably well".
All the little rules and new concepts add up and in the beginning it can be frustrating to have the compiler complaining. On the plus side, it's like a motorcycle - it doesn't take long to drive it safely & efficiently.
Learning Rust is fun, I wholeheartedly suggest it even if you don't end up using it at work.