[Top][All Lists]

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

Re: Declaring a local dynamic variable?

From: Andreas Röhler
Subject: Re: Declaring a local dynamic variable?
Date: Sat, 28 Sep 2013 08:50:59 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 28.09.2013 08:24, schrieb W. Greenhouse:
Andreas Röhler <address@hidden> writes:

Am 27.09.2013 22:18, schrieb Pascal J. Bourguignon:
[ ... ]

The conclusion is that in emacs lisp you have to prefix ALL the symbols!
Which clearly demonstrates a failure of the language.

Resp. of it's implementation.

Why not uniquify --instead of prefixing-- under the hood?

As has already been pointed out in this thread, Emacs does have (via
cl-lib or more specifically cl-macs) a version of `declare' whose
special-variable declarations are respected by the byte compiler.  So
it's a solved problem; I don't understand why Pascal and others are
NIHing it and then complaining about the deficiencies of Emacs Lisp.

The general usefulness of this functionality, however, does make me
wonder why it's still stuck in the cl namespace.  It seems like a prime
candidate for promotion to subr or similar.

BTW not sure if we are speaking at the same thing, resp. if this might be expressed by 
"lexical" or "dynamic" already.

IMO it's convenient to use and change a let-bound var in downward functions, 
whithout the need to hand it over via arguments etc.
Just a convenience, it saves keystrokes, a major reason for me to use Emacs.

Maybe "let" should already provide what "declare" does?

reply via email to

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