|
From: | Stefan Monnier |
Subject: | bug#12314: 24.2.50; `add-to-history': use `setq' with `delete' |
Date: | Sat, 08 Sep 2012 19:11:50 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
>> > Why is it even necessary to talk about destructive modifications, if >> > we are to advise to assign the result anyway? >> Not sure I understand the question. It is because these operations can be >> destructive of list structure that we advise that. > If you need to forget about the old value and assign the new one > returned by 'delete', why does it matter that the modification was > destructive? Because it avoids memory allocation. I.e. 99% of the uses of delete/delq/nconc are simple optimizations. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |