unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rudolf Schlatte <rudi@constantly.at>
To: help-gnu-emacs@gnu.org
Subject: Re: `apply-partially` and hash tables
Date: Sun, 20 Oct 2024 21:12:33 +0200	[thread overview]
Message-ID: <m1ed4a6126.fsf@constantly.at> (raw)
In-Reply-To: jwvv7xm671c.fsf-monnier+emacs@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> My question is the same, though: can it be relied upon?
>
> It's fundamental to the notion of what is a *value* (as in "call by
> value"), so yes, very much so.

The usual caveat for lists applies: prepending values to the front or
otherwise mutating the list will not work as expected in general, since
what you're holding is just a cons cell.  (This is an instance of the
"delete bug" where you have to write `(setq x (delete 'foo x))' instead
of just `(delete 'foo x)'.)




  reply	other threads:[~2024-10-20 19:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20  9:43 `apply-partially` and hash tables Joost Kremers
2024-10-20  9:54 ` tomas
2024-10-20 14:46 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-10-20 15:19   ` Joost Kremers
2024-10-20 17:04     ` Stefan Monnier
2024-10-20 19:12       ` Rudolf Schlatte [this message]
2024-10-20 20:29         ` Stefan Monnier via Users list for the GNU Emacs text editor

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=m1ed4a6126.fsf@constantly.at \
    --to=rudi@constantly.at \
    --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).