[Top][All Lists]

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

Re: [Chicken-users] case vs. eq? - just curious ....

From: John Cowan
Subject: Re: [Chicken-users] case vs. eq? - just curious ....
Date: Sat, 3 Mar 2012 14:47:07 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

Peter Bex scripsit:

> Guide himself talks about this here:

Fascinating.  I'm working my way through the entire blog (fortunately
only 26 posts) even as we speak.

> PHP has this "problem" as well.  PHP even allows included files and
> EVALed code to access local lexical variables in the calling function.
> I've often seen newbies in #scheme or #chicken who were confused
> by this, and tried to graft similar functionality on top of Scheme
> (which is utterly doomed to fail, of course)

Whew.  I'm certainly glad I always stayed ten miles away from any
PHP code.

> And don't get me started on Javascript with its idiotic "hoisting"
> concept...

There are advantages to the scope of a declaration extending before
the declaration; it means you don't have to have special syntax to
forward-declare a name before you can use it in mutual recursion.
But basically I agree, especially for Scheme syntax declarations.
See "The Tale of Professor Simpleton and Dr. Hardcase" at .
John Cowan                                <address@hidden>
Yakka foob mog.  Grug pubbawup zink wattoom gazork.  Chumble spuzz.
    --Calvin, giving Newton's First Law "in his own words"

reply via email to

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