3 ms·
Dynamic scoping moves a bunch of correctness checks from compile time to runtime. It basically introduces all the problems that come with shared mutable state a
by jupp0r 6y ago
Dynamic scoping moves a bunch of correctness checks from compile time to runtime. It basically introduces all the problems that come with shared mutable state across different functions/methods. It becomes hard to reason about who mutates state where/when.
- wffurr 6y agoExactly. I read this: Ergo, dynamically-scoped variables are shadowable side-channels that can influence the behavior of a function And thought that is exactly why not to use dynamic scoping. It makes every function impure by default.