I understood that to mean you can't reuse a variable name from a wider scope in a more local scope, which I thought was fair. You can come up with better names than that and remove ambiguity instead of shadowing.
My heart stopped at the 2nd one, keyboard shortcuts (c instead of const, f instead of function). Cause hipsters trying to Make FP Great have been promoting shorter but harder-to-read code for a while now, eg using arrow notation for no good reason. I thought "you finally really did it...you maniacs! Damn you!"
It took the 3rd one (dot notation everywhere) to allow me breathe a sigh of relief.
17
u/synackle Apr 01 '17
Damn, my heart stopped at global vars