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: Stefan Monnier
Subject: Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types.
Date: Thu, 14 Dec 2017 09:12:44 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> I'm just really puzzled by all the strong reactions for a problem that's
>> so% hypothetical, 
> It is not hypothetical.  I am sure people will define such types in
> their code, and get screwed.

[ Just because you're convinced it will happen doesn't make it less
  hypothetical.  AFAICT it has never happened so far.  ]
The 20 years of experience with cl.el's defstruct, plus the 10 years of
experience with eieio's defclass seem to disagree.

> Since we agree that defining these symbols as record types should not
> be done, let's make it easier for programmers to avoid doing that.

I won't get in the way of someone else doing that, *as long as* it's
done via compilation-time (or even load-time) checks rather than
run-time checks (i.e. not in make-record).


        Stefan




reply via email to

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