emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record


From: Sam Steingold
Subject: Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types.
Date: Wed, 13 Dec 2017 10:41:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin)

> * Stefan Monnier <address@hidden> [2017-12-12 17:20:29 -0500]:
>
>> If programmers are not supposed to do it, let's detect it and report
>> an error when they try.  That way, they will know it's an error as
>> soon as they try, rather than needing to debug it to find out it's an error.
>
> When was the last time you saw a user try to redefine the
> "integer" type?
> [ I'll be happy to hear about cases in other languages than Elisp,
>   since otherwise it's going to be depressingly silent I'm afraid.  ]

What's so special about "integer"?
How many other built-in types does Emacs Lisp have?
Can you list them all by heart? Can everyone?
What about many different packages which may redefine each other's
types?  Especially since Emacs Lisp does not have the Common Lisp-style
package system, and it does not enforce the prefix conventions.

It seems to me that warning on redefining a type (or defining a type
with a name which already names a type) is a very good idea.
Emacs Lisp already warns on redefining functions with a different
signature.  Why not warn about types?

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net https://jihadwatch.org
http://camera.org http://memri.org http://www.memritv.org
At war time "salt of the earth" becomes "cannon fodder".




reply via email to

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