4 ms·
> 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 decla
by teamhappy 10y ago
> 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.