GNU bug report logs - #59057
Emacs 29. Byte compiler sometimes forgets about a defvar.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Sat, 5 Nov 2022 18:47:02 UTC

Severity: normal

Full log


Message #38 received at 59057 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 59057 <at> debbugs.gnu.org
Subject: Re: bug#59057: Emacs 29. Byte compiler sometimes forgets about a
 defvar.
Date: Thu, 24 Nov 2022 15:36:17 -0500
> I guess defvar will have to stay as it is.  But would it make sense to
> add a new `declare-variable' function, and then document the form
>
>     (defvar <foo>)
>
> to be considered deprecated?

I don't see any concrete benefit.  It's only a problem of documentation
and/or teaching programmers.  If we could go back to 1984 maybe it would
be worth it to make a different decision, but the cost of the change
doesn't seem worth the very minor (and hypothetical) benefit.


        Stefan





This bug report was last modified 2 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.