Learn Rust the Right Way

11 pointsposted 11 hours ago
by mahirsaid

7 Comments

mitchbob

9 hours ago

Link is to "Defining Modules to Control Scope and Privacy" in The Rust Programming Language. Is that correct?

mahirsaid

11 hours ago

Rust is becoming more important everyday that passes, so it might help to understand why.

another_twist

9 hours ago

I mean honestly my question is why should I bother ?

Java has memory safety and near native performance, the only thing going on for Rust is fearless concurrency which is a USP I think but not enough for me to bother learning its complicated syntax. Had I been unbelievably productive in that language, that would have sealed the deal completely. But alas.

manx

9 hours ago

I think memory safety is a weak argument for rust and only works against C/C++, as you mention. For me, the strongest arguments against GCed languages are static analysis goodies that other languages don't have. Like checked immutably by the compiler, the borrow checker which forces you into a certain architecture, fearless concurrency etc. All those lead to fearless refactoring, which is a very strong point for me.

adastra22

8 hours ago

I don't think Java has the same type of memory safety as Rust. Not unless things have changed drastically?

DiabloD3

5 hours ago

It doesn't, it merely disallows you from actually managing your memory.

suddenlybananas

9 hours ago

Rust has complicated semantics surrounding borrowing of course but its syntax is pretty straightforward I find! What makes you think it is complicated?