all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defvar vs defconst
@ 2013-08-02  9:49 Thorsten Jolitz
  2013-08-02 21:49 ` Stefan Monnier
  2013-08-03  3:37 ` Eric Abrahamsen
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2013-08-02  9:49 UTC (permalink / raw)
  To: help-gnu-emacs


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





^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.2402.1375476850.12400.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2013-08-03  7:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02  9:49 defvar vs defconst Thorsten Jolitz
2013-08-02 21:49 ` Stefan Monnier
2013-08-03  3:37 ` Eric Abrahamsen
2013-08-03  7:43   ` Thorsten Jolitz
     [not found] <mailman.2402.1375476850.12400.help-gnu-emacs@gnu.org>
2013-08-02 21:05 ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.