[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: setq's with missing final arguments.
From: |
Drew Adams |
Subject: |
RE: setq's with missing final arguments. |
Date: |
Sun, 22 Nov 2015 08:04:58 -0800 (PST) |
> > In the setq, there is a missing argument after "bar". At the moment,
> > the byte compiler just generates code to assign nil to bar, without
> > giving any warning. IMAO, this is Very Bad.
>
> This is bug#20241.
I'd forgotten that I filed that bug. ;-)
I disagree with the only reply to that bug report, however:
From: Stefan Monnier
> Beyond this particular occurrence, I think that a wrong-number-of-args
> error should be raised when `setq' is called with an odd number of
> arguments.
At the very least the byte-compiler should warn about it, indeed.
A warning is _no_ substitute for raising an error. Adding a
warning for byte compilation is worse than doing nothing, IMO.
The doc clearly says that an even number of args are _required_.
- Re: setq's with missing final arguments., (continued)
- Re: setq's with missing final arguments., David Kastrup, 2015/11/22
- Re: setq's with missing final arguments., Andreas Schwab, 2015/11/22
- Re: setq's with missing final arguments., David Kastrup, 2015/11/22
- Re: setq's with missing final arguments., Andreas Schwab, 2015/11/22
- Re: setq's with missing final arguments., Alan Mackenzie, 2015/11/22
- Re: setq's with missing final arguments., Eli Zaretskii, 2015/11/22
- Re: setq's with missing final arguments., Alan Mackenzie, 2015/11/22
- RE: setq's with missing final arguments., Drew Adams, 2015/11/22
Re: setq's with missing final arguments., David Kastrup, 2015/11/22
Re: setq's with missing final arguments., Johan Bockgård, 2015/11/22
- RE: setq's with missing final arguments.,
Drew Adams <=
RE: setq's with missing final arguments., Drew Adams, 2015/11/22