News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by empath75 on Wednesday January 09, 2019 @04:36PM (#18869181)
let foo = bar; let foo = bat;

is shadowing

let foo = bar; foo = bat;

is a compilation-time error because foo isn't mutable.

let mut foo = bar; foo = bat;

is reassignment.

in working code, either foo is declared as mutable or it's not, and it's pretty obvious from the code what's happening.

Re:Thoughts on Rust, a few thousand lines in by StreamBright on Wednesday January 09, 2019 @05:12PM (#18869507)
I guess. I would just never write code like that.