THE LACK THEREOF

Comments on TLT - 2005.07.22

2 Comments.

The idea similiar to dynamic scope, as I understand it. Dynamic scope is very unpopular in languages these days but I guess Lisp has it. I've only read about it, but I understand it's very useful for some applications.

-- evan from lj 2005-09-11 06:32 UTC


Perl has dynamic scope too ('local'). After thinking about it for a moment I understand what you mean. Definately not the same though... like with dynamically scoped variables these would be set based on the call (or composition) chain, but how they are set is much more complicated and at the same time a bit less messy.

More complicated because it could be 'somewhere in my call chain, f() was invoked' (doesn't have to be the immediate caller really). Less messy because function f() doesn't have to do anything to set it up, and none of the other functions in the call chain are poluted by this variable.

Thanks for the connection though... I hadn't noticed it.

-- awwaiid 2005-09-12 02:03 UTC

Navigation

Blog

https://thelackthereof.org/pics/16px-Feed-icon.svg.png Blog RSS Feed

Tweets


Code

Follow @awwaiid

Wiki Edits

https://thelackthereof.org/pics/16px-Feed-icon.svg.png Wiki RSS Feed

... more changes