[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `apply-partially` and hash tables
From: |
Rudolf Schlatte |
Subject: |
Re: `apply-partially` and hash tables |
Date: |
Sun, 20 Oct 2024 21:12:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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)'.)