|
From: | Stefan Monnier |
Subject: | Re: 31395511: "Don’t attempt to modify constant strings" |
Date: | Thu, 04 Jun 2020 17:27:32 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> To be honest, I'd prefer a mutablep predicate, with a strong warning not > to use it in the way that was suggested: > > (if (mutablep object) > (do-something object) > (do-something (copy object))) Aka (do-something (if (mutablep object) object (copy object))) Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |