[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real constants

From: Juanma Barranquero
Subject: Re: Real constants
Date: Mon, 18 Jul 2005 08:05:47 +0200

On 7/15/05, Stefan Monnier <address@hidden> wrote:

> That seems to be the only real motivation (the others are more like "why not
> have it"?).

Well, I won't say that. It's more: "why not use them for the same uses
that they have in other languages". And moreover, having defconst's
which don't "const" is cognitive dissonance.

> E.g. my local Emacs's strings are
> non-mutable.  I.e. I like to try and add some constraint which seems to be
> generally not broken, and see if/where it gets broken.  This is a general
> technique to learn to understand some unknown piece of code.


> Of course I also strongly believe in non-mutable objects, so I like the idea
> of constants and non-mutable strings, but I know it's a waste of time to try
> and include those things in elisp.

Yeah, I know now, too.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]