[Top][All Lists]

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

Re: local binding, too local...

From: Rusi
Subject: Re: local binding, too local...
Date: Sat, 8 Dec 2018 01:33:37 -0800 (PST)
User-agent: G2/1.0

Yuri wrote:

      (let* ((bar '(baz quux))) 
        (setf (car bar) 'xyzzy) 
        (let ((plugh (cdr bar))) 
          (message "%s" plugh)))) 

Can also be written
(let (bar plugh) 
 (setf bar '(baz quux))
 (setf (car bar) 'xyzzy)
 (setf plugh (cdr bar)))

IOW declare variables without initializers. Then write 'normal'imperative code

reply via email to

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