bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patterns of dynamic scoping and nested routines.


From: Steven W. Orr
Subject: Patterns of dynamic scoping and nested routines.
Date: Mon, 21 Feb 2011 23:11:21 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

It has been an exciting weekend for me. I studied the dynamic vs static scoping rules and I think I have a better handle on things, but I have a few questions.

It seems that there's no reason why we are not allowed to write nested functions. Nested functions would not be visible to other functions, and might be a way of providing capabilities to users to specify *when* they want to have static scoping.

So between nested functions, dynamic scoping and recursion, I was wondering if people have explored pattern usages that might be germaine to bash? Any do's and dont's? Any gotchas?

--
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]