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:08:27 -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 1513260694 4563 195.159.176.226 (14 Dec 2017 14:11:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2017 14:11:34 +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:11:30 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 1ePUET-0000ry-Rv for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 15:11:29 +0100 Original-Received: from localhost ([::1]:41179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUEa-0001Sb-Tg for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2017 09:11:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePUDN-0000jF-Oi for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:10:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePUDJ-0006OX-QE for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:10:21 -0500 Original-Received: from [195.159.176.226] (port=49288 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePUDJ-0006MF-J3 for emacs-devel@gnu.org; Thu, 14 Dec 2017 09:10:17 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ePUD7-0005J1-Lx for emacs-devel@gnu.org; Thu, 14 Dec 2017 15:10:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:rvlUCHNonzpSxXidK6sZ6i4GNx0= 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:221049 Archived-At: >> Moving forward, I'd expect that "types" will get a more first-class >> presence in Elisp, so you should be able to check if a given type name >> is already used. > If type names are global, that won't be enough to avoid conflicts. > You must avoid conflicts with all the Lisp packages that _might_ get > loaded. > It's just like the situation with function definitions and global variables. Exactly, and this has been with us for years and years. This is not a new problem, has standard solutions, and people already use those solutions. > That means you should use your package's naming convention for record > types, just as for functions and global variables, to avoid conflicts > with other packages that you don't know about. And that's already what has been done all these years. Stefan