[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defvar vs defconst
From: |
Thorsten Jolitz |
Subject: |
defvar vs defconst |
Date: |
Fri, 02 Aug 2013 11:49:21 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Hi List,
when you define a variable that should not be touched/set by the user of
your library (which is most likely a programmer), but will be frequently
set to a new value by your own program - would you call that a VAR or a
CONST?
(defconst ...) signals "don't touch this", which seems to the right
thing in this case, but OTOH it is a bit strange to call something a
constant that not only can be changed, but will actually be changed
quite often.
--
cheers,
Thorsten
- defvar vs defconst,
Thorsten Jolitz <=