DEV Community

Discussion on: JavaScript and Scope VI - Closures

Collapse
 
tchaffee profile image
Todd Chaffee

I haven't personally worked with languages that use dynamic scope instead of lexical scope, but I read that Perl allows dynamic scope. Dynamic scope is harder to reason about because it relies on how the program runs instead of how the program is written.