From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Should records be able to mimic primitive types? Date: Sat, 08 Apr 2017 15:09:18 +0000 Message-ID: References: <8777899d-ca8e-212c-b8bf-2f8da4c54836@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1147c434e75b18054ca9209c X-Trace: blaine.gmane.org 1491664315 6641 195.159.176.226 (8 Apr 2017 15:11:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Apr 2017 15:11:55 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 08 17:11:48 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 1cws1d-0000Oe-QZ for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 17:11:41 +0200 Original-Received: from localhost ([::1]:55532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cws1j-00009l-Mn for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 11:11:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwrzW-0006vK-OM for emacs-devel@gnu.org; Sat, 08 Apr 2017 11:09:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwrzV-0005LW-SH for emacs-devel@gnu.org; Sat, 08 Apr 2017 11:09:30 -0400 Original-Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:38669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwrzV-0005LK-Ls for emacs-devel@gnu.org; Sat, 08 Apr 2017 11:09:29 -0400 Original-Received: by mail-wm0-x231.google.com with SMTP id t189so10406642wmt.1 for ; Sat, 08 Apr 2017 08:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3WepFePlJvenfFTtqkARgxSb2+90dc2cs6nhHifHhfQ=; b=Kc2QHgF201jrPtrHgOc8yCKebKcnSEy4vAhik4dMr7gWP5UVe/2IoOVuWZq/A6+iOa UdXWwx0YKiewkyBYdNITWgIV70GawlyV5tPtpKe+npunBxAs2sO+X8nT/BKBxzPGOPRv gUeg3L2WLJZq2Z1QSPX0Td/o6xSS2lNaIoOUQIuei3TWu4TZ30IEhXfIN/cz/tHubRB1 ZEbrI+dVQSjVRDnDJZN/AHGoaet+BBafqIcMus4r15c0ec03AD7CTsw7ImIufsLAmghE zBtJaeg9nSPKF6hHKKnoT2QUNZgj0lKeFxrojbyCObNbdQFgdxosiVggNkaGN6s/0npJ fgVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3WepFePlJvenfFTtqkARgxSb2+90dc2cs6nhHifHhfQ=; b=i4dnkaf9kmEH4p8RCeUJyls0iGGopvwHXlrCnDVIPRch+udJ2/saAsPIII+BMN6FJv Zvq5IF7v+RYxi4Vh4qk79M8+cBMuCDAqomrg2RxKDuJijODwmCY7YhdmLFhaG7cuhrIH Sg+mGNFKaQuYrNddMn17AJ4i1ro4ZOiA/X3/UIeFGiUYPJbOybO+1Wk4Dv91HCBPySyZ 2afh8TC6XIbzJXH/ujjMAN5S+wzKYXPri+C8xdz+x6a6zj1qPS4fyyNpq+gOoupvOA3p Q8zFufGKEtk4o/ZFutFeffFfo2aSJtBEEp8Z/MGdRkaoluO1nmzTGVMv6IkNEEnHUXZM UVyw== X-Gm-Message-State: AN3rC/6x2DP81wET6CElJ0sS5EYQ4JBi8uc2xcKaEpPxjESKEWu955/S FGAshwpvmsAnMshwbXNDEfXsDmqPXQ== X-Received: by 10.28.109.93 with SMTP id i90mr3596412wmc.44.1491664168768; Sat, 08 Apr 2017 08:09:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::231 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:213810 Archived-At: --001a1147c434e75b18054ca9209c Content-Type: text/plain; charset=UTF-8 Stefan Monnier schrieb am Mi., 5. Apr. 2017 um 03:10 Uhr: > > Or should 'record' and 'make-record' reject attempts to build records > > that pretend to be of primitive types? > > I don't see the benefit in trying to try hard to prevent the user from > shooting himself in the foot. > > It's not trying hard, just a simple check for a known, small, and rarely-changing list of primitive symbols. --001a1147c434e75b18054ca9209c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Stefan= Monnier <monnier@iro.umontr= eal.ca> schrieb am Mi., 5. Apr. 2017 um 03:10=C2=A0Uhr:
> Or should 'record' and 'make-r= ecord' reject attempts to build records
> that pretend to be of primitive types?

I don't see the benefit in trying to try hard to prevent the user from<= br class=3D"gmail_msg"> shooting himself in the foot.


It's not trying hard, just a simple ch= eck for a known, small, and rarely-changing list of primitive symbols.=C2= =A0
--001a1147c434e75b18054ca9209c--