News for hackers. Stuff that matters.
Re:Comparison between Rust and D by teamhappy on Saturday June 25, 2016 @01:35PM (#11977146)
> I was responsible for this design decision.

Dun dun duuun

I used to write a lot of C++ and my idea of immutability always was that if I see a variable declaration at the top of a function and scroll down to where it's used (without reading the code in the middle) I can assume nothing happened to the variable.

Then I started to learn Haskell something like a year ago and found out that shadowing is not only allowed but used by people. Especially in Haskell (or OCaml for that matter) where you can just use x' for a slightly modified version of x. I don't know. Maybe I get used to it one day.

There are no comments on this comment yet.