bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58513: describe-function should say that defconst variables are cons


From: Stefan Kangas
Subject: bug#58513: describe-function should say that defconst variables are constant
Date: Fri, 14 Oct 2022 08:03:10 -0500

Lars Ingebrigtsen <larsi@gnus.org> writes:

> And we could start adding a symbol property saying that a constant is
> meant to be constant, and perhaps start warning if people change it, but
> that would make things slower for basic things like `setq', so I'm
> pretty sure it's not worth it.

Yes, incurring a run-time cost doesn't sound worth it, but we could
perhaps make the byte-compiler warn about it.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]