CS 3304: Comparative Languages
Names and Binding
[
Course Documents
] : [
Names and Binding
]
Previous
Contents
Next
Keyword Index
Static vs. Dynamic Scoping
Advantages of static scoping:
Readability
Locality of reasoning
Less run-time overhead
Disadvantages:
Some loss of flexibility
Advantages of dynamic scoping:
Some extra convenience
Disadvantages:
Loss of readability
Unpredictable behavior (no locality of reasoning)
More run-time overhead