[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63509: [PATCH] Make copy-tree work with records
From: |
Stefan Monnier |
Subject: |
bug#63509: [PATCH] Make copy-tree work with records |
Date: |
Mon, 15 May 2023 10:42:24 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> Please tell me if I misunderstand the intended behavior of copy-tree.
> Adding Stefan in case he has comments.
No specific comment, no. I don't hold `copy-tree` in my heart (it
rarely copies exactly what you need, similar problem as for
`flatten-tree`), so as general rule I'd recommend against its use, but
it's occasionally handy as a quick&dirty "deep copy" function, and
extending it to records seem like an obvious fix (it used to do that
back when `cl-defstruct` used vectors).
Stefan