GNU bug report logs - #40671
[DOC] modify literal objects

Previous Next

Package: emacs;

Reported by: Kevin Vigouroux <ke.vigouroux <at> laposte.net>

Date: Thu, 16 Apr 2020 20:40:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #69 received at 40671 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Drew Adams <drew.adams <at> oracle.com>, Mattias EngdegÄrd
 <mattiase <at> acm.org>
Cc: Kevin Vigouroux <ke.vigouroux <at> laposte.net>, 40671 <at> debbugs.gnu.org
Subject: Re: bug#40671: [DOC] modify literal objects
Date: Sun, 19 Apr 2020 15:51:07 -0700
On 4/19/20 3:24 PM, Drew Adams wrote:
> Don't say "constant".  Say "don't try to change it".

That's too long and awkward a phrase for use in lots of places around the 
manual. We need a simple noun phrase to describe the concept; this is 
Documentation 101.

One possible substitute is "literal object", as Mattias pointed out. Another 
possibility is "immutable object". Perhaps others might be better.

> The only cases that are problematic are those where
> you can think your code modifies something (anew)
> when in fact it might not.

No, that's not the only issue. If you modify some of these "constants" (or 
"literal objects" or whatever term you like), the behavior is undefined: Emacs 
can crash or remove your home directory or whatever. There is no checking.
> By mischaracterizing not mutable as "should not be
> changed" (instead of "cannot be changed"), you can
> give the false impression that the opposite is true:
> if something is mutable then there's no reason you
> shouldn't change it.

I don't see that false impression being given. But if it is being given, 
presumably the problem could be fixed by appropriate wording changes. Specific 
suggestions welcome.




This bug report was last modified 5 years and 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.