Eager Eagle
- 1 Post
- 3 Comments
Joined 2 years ago
Cake day: July 7th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Eager Eagle@lemmy.worldto Rust Programming@lemmy.ml•Understanding Rust Ownership: Immutable and Mutable References, RC and RefCellEnglish2·9 months agoAs someone learning Rust, I’ll say that I appreciate the “advice” at the top because cloning is often tempting to use but - even though that’s usually okay - it doesn’t help one to practice the rust-specific ways of handling scope, ownership, and borrowing.
top 5 best things I’ve done in the last year
But seriously, I don’t have much Rust proficiency and I still pick software in Rust because 1. installing and updating rust itself and things installed with it is a bliss; and 2. the CLI experience of Rust programs tends to be much better than alternatives.
Contrasting that with installing something with Go, which is a common alternative for things written in Rust:
gvm list
works, but to list versions for download it’sgvm listall
instead ofgvm list --all
)Now for Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install cargo-update
to update everything else withcargo install-update -a