News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by gpm on Wednesday January 09, 2019 @04:32PM (#18869140)
I've done a fair bit of rust development and never found that to be an issue.

It probably helps that the only ways to introduce new variables are all very distinctive:

   let [new variables] = [expr];

   if/while let [new variables] = [expr] { [new variables scoped here] }

   for [new variables] in expr { [new variables scoped here] }

   fn name([new_variables]) { [new variables scoped here] }
Re:Thoughts on Rust, a few thousand lines in by Thiez on Wednesday January 09, 2019 @04:50PM (#18869294)
You forgot `match` and closures. But in general I think new variables can be created in all contexts where a pattern can be used.
Re:Thoughts on Rust, a few thousand lines in by steveklabnik on Wednesday January 09, 2019 @04:55PM (#18869341)
Yes, in fact, it's always a pattern. Even let x = 5; is a pattern, just a very simple one!