From: Barry Fishman <barry@ecubist.org>
To: help-gnu-emacs@gnu.org
Subject: Re: local binding, too local...
Date: Sat, 08 Dec 2018 14:13:57 -0500 [thread overview]
Message-ID: <7nd0qb6dca.fsf@ecube.ecubist.org> (raw)
In-Reply-To: mailman.5389.1544287285.1284.help-gnu-emacs@gnu.org
On 2018-12-08 11:41:10 -05, Stefan Monnier 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)))
>
> Indeed, but you lose a lot of karma points for that,
Haven't you already lost all your karma points by modifying a literal list no
matter how you do it. ;-)
--
Barry Fishman
prev parent reply other threads:[~2018-12-08 19:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-08 2:18 local binding, too local Jean-Christophe Helary
2018-12-08 6:07 ` Drew Adams
2018-12-08 7:39 ` Jean-Christophe Helary
2018-12-08 6:48 ` Yuri Khan
2018-12-08 7:37 ` Jean-Christophe Helary
2018-12-08 8:02 ` tomas
2018-12-08 14:45 ` Jean-Christophe Helary
2018-12-08 21:59 ` tomas
2018-12-09 2:41 ` Jean-Christophe Helary
2018-12-09 8:45 ` tomas
2018-12-09 9:55 ` Jean-Christophe Helary
[not found] ` <mailman.5363.1544251700.1284.help-gnu-emacs@gnu.org>
2018-12-08 9:33 ` Rusi
2018-12-08 16:41 ` Stefan Monnier
[not found] ` <mailman.5389.1544287285.1284.help-gnu-emacs@gnu.org>
2018-12-08 19:13 ` Barry Fishman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7nd0qb6dca.fsf@ecube.ecubist.org \
--to=barry@ecubist.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).