[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defvars at compile time
From: |
Stefan Monnier |
Subject: |
Re: defvars at compile time |
Date: |
Tue, 21 Mar 2006 21:20:20 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> Emacs-21 should complain indeed, but Emacs-CVS
>> shouldn't (because it recognizes the (if (boundp ..) ..) form).
> Yes it is. But Gnus CVS supports Emacs 21 and XEmacs, so we
> have to do something to avoid a compile warning.
Well, I'd have to strongly disagree with "have to". Nothing forces you to
remove all compilation warnings for all supported emacsen.
>> I.e. it's a bad solution.
> I think the reason it is bad is only that it might take more
> time than directly referring the value of the variable.
It's much worse than that. It's fundamentally wrong to make code less
readable for the sake of compiler warnings. Compiler warnings are there to
help you find bad code and improve it. Not to make code uglier and harder
to maintain. The primacy should be with the code, not with the
compiler warnings.
Stefan
- Re: New GNOME icons, (continued)
- Re: New GNOME icons, Bill Wohler, 2006/03/10
- Re: New GNOME icons, Katsumi Yamaoka, 2006/03/13
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: defvars at compile time, Katsumi Yamaoka, 2006/03/15
- Re: defvars at compile time, Kevin Rodgers, 2006/03/16
- Re: defvars at compile time, Johan Bockgård, 2006/03/16
- Re: defvars at compile time, Bill Wohler, 2006/03/16
- Re: defvars at compile time, Miles Bader, 2006/03/16
- Re: defvars at compile time, Richard Stallman, 2006/03/17
- Re: defvars at compile time, Stefan Monnier, 2006/03/20
- Re: defvars at compile time, Katsumi Yamaoka, 2006/03/21
- Re: defvars at compile time,
Stefan Monnier <=
- Re: defvars at compile time, Bill Wohler, 2006/03/27
- Re: defvars at compile time, Stefan Monnier, 2006/03/28
- Re: defvars at compile time, Richard Stallman, 2006/03/29
- Re: defvars at compile time, Richard Stallman, 2006/03/28