[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found
From: |
Jan Djärv |
Subject: |
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking. |
Date: |
Tue, 4 Sep 2012 10:31:46 +0200 |
Hello.
4 sep 2012 kl. 07:45 skrev Paul Eggert <address@hidden>:
> On 09/03/2012 10:29 PM, Jan Djärv wrote:
>> Emacs does not use const much.
>
> It's typically easy to determine whether a local variable
> is never changed once initialized, simply by reading the code.
> So, for local variables, 'const' is typically more trouble than
> it's worth, as it adds a bit of noise to the code
> without much compensating value.
>
I disagree. Given that Emacs have quite a lot of functions that are more than a
couple of hundred lines long, it is not typically easy. For smaller functions,
it can be, but small functions sometimes becomes big.
Jan D.
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Eli Zaretskii, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Stefan Monnier, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Paul Eggert, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Eli Zaretskii, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Paul Eggert, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Stefan Monnier, 2012/09/03
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Jan Djärv, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Paul Eggert, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking.,
Jan Djärv <=
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Paul Eggert, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Jan Djärv, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Jason Rumney, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Stefan Monnier, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Wojciech Meyer, 2012/09/04
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Wojciech Meyer, 2012/09/04
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking., Jason Rumney, 2012/09/04