help-gnu-emacs
[Top][All Lists]
Advanced

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

Let clause with defvar


From: Heime
Subject: Let clause with defvar
Date: Thu, 05 Sep 2024 11:33:48 +0000

On Thursday, September 5th, 2024 at 10:32 PM, Philip Kaludercic 
<philipk@posteo.net> wrote:

> Heime heimeborgia@protonmail.com writes:
> 
> > Consider two versions of setting xiakos. The let defines local bindings.
> > Can the let block be placed outside a defvar or inside. Does it make a
> > difference ? Although defvar is used to define global variables, can it
> > be used to evaluating local bindings like let ? Which version would one
> > suggest ?
> > 
> > (let ( (orella-waypt
> > (questor-path-snip marshal-waypt "orella")) )
> > 
> > (defvar xiakos
> > `( ("GLXKS" . ,(concat orella-waypt "/xiakos"))
> > ("GLXKS" . ,(concat orella-waypt "/xiakos")) ))
> > 
> > and
> > 
> > (defvar xiakos
> > 
> > (let ( (orella-waypt (questor-path-snip marshal-waypt "orella")) )
> > 
> > `( ("GLXKS" . ,(concat orella-waypt "/xiakos"))
> > ("GLXKS" . ,(concat orella-waypt "/xiakos")) ))
> 
> 
> I'd place the `let' inside the` defvar', because it makes it easier to
> evaluate the value manually without changing the value of the variable.

Can you clarify what you are talking about ?  What would one want to evaluate ?
 
> --
> Philip Kaludercic on siskin



reply via email to

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