From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] * etc/NEWS: Document incompatibilities introduced by record types. Date: Thu, 14 Dec 2017 09:12:44 -0500 Message-ID: References: <20171211213729.41411-1-phst@google.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513260931 15541 195.159.176.226 (14 Dec 2017 14:15:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 14:15:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 15:15:26 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePUIE-0003cr-F1 for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 15:15:22 +0100 Original-Received: from localhost ([::1]:41194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUIL-0002yY-KA for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 09:15:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUI9-0002xu-Ss for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:15:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePUI6-0002Xh-N9 for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:15:17 -0500 Original-Received: from [195.159.176.226] (port=56833 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePUI6-0002Ub-ES for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:15:14 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ePUHw-0002mo-Ky for emacs-devel@gnu.org; Thu, 14 Dec 2017 15:15:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:xACwxGpenkb078pVJ4M9lY8JaWI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221050 Archived-At: >> 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