Re:History of T (2001)
by patrec on Saturday August 18, 2018 @09:24AM
(#17788340)
You already realized that env vars are an example of dynamic scoping, and someone mentioned exceptions downthread.
But pretty much any serious programming language has some (often crappy ad-hoc) implementation of dynamic scoping somewhere, because it's very useful. Take decimal contexts in python -- would you really like to pass number of significant digits and rounding mode to every operation? Sadly, it's also an example of a crappy ad-hoc implementation (broken with async).
But pretty much any serious programming language has some (often crappy ad-hoc) implementation of dynamic scoping somewhere, because it's very useful. Take decimal contexts in python -- would you really like to pass number of significant digits and rounding mode to every operation? Sadly, it's also an example of a crappy ad-hoc implementation (broken with async).