3 ms·
I find FP and shadowing have nothing to do with eachother (maybe except though Haskell's do-notation)
by cies 2y ago
I find FP and shadowing have nothing to do with eachother (maybe except though Haskell's do-notation)
- nuancebydefault 2y agoYou have a point. Maybe the shadowing is a paradigm on itself, supporting FP. If you know it happens all the time, and you know every var lives in the current scope, all you have to care about is the current scope. Just like in C function-local-vars (which might or not shadow globals) , but then applied to every code block.
- mrkeen 2y ago> Maybe the shadowing is a paradigm on itself, supporting FP. Not really. Shadowing is compiler-warning in Haskell.