From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: If records are not sequences, why does aref work on records? Date: Sat, 8 Apr 2017 13:17:25 -0400 Message-ID: <363dab7f-3bb4-47a0-d83c-95f4961a5443@gmail.com> References: <86pogo4vty.fsf@molnjunk.nocrew.org> <8360igof0k.fsf@gnu.org> <867f2w4qdk.fsf@molnjunk.nocrew.org> <0e6a0a16-8133-b2bc-404a-d0016f0c655e@cs.ucla.edu> <86h9202knq.fsf@molnjunk.nocrew.org> <4f2a1d4c-8703-4f07-a721-ea28c348631d@default> <864ly02i1m.fsf@molnjunk.nocrew.org> <7342364e-98f9-87d5-72d2-2f2d46d239f3@gmail.com> <86efx22a7u.fsf@molnjunk.nocrew.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1491671906 14225 195.159.176.226 (8 Apr 2017 17:18:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Apr 2017 17:18:26 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 08 19:18:22 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 1cwu01-0001xF-FS for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 19:18:09 +0200 Original-Received: from localhost ([::1]:55931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwu07-0004FA-8n for ged-emacs-devel@m.gmane.org; Sat, 08 Apr 2017 13:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwtzP-0004Ey-Tj for emacs-devel@gnu.org; Sat, 08 Apr 2017 13:17:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwtzK-0000Ge-Vk for emacs-devel@gnu.org; Sat, 08 Apr 2017 13:17:31 -0400 Original-Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:34446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwtzK-0000Ga-S5 for emacs-devel@gnu.org; Sat, 08 Apr 2017 13:17:26 -0400 Original-Received: by mail-qt0-x22f.google.com with SMTP id c45so39146888qtb.1 for ; Sat, 08 Apr 2017 10:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=36EKIzcvjND0MqxVsAWJSiX0e077beZn5Du8xrIKnOM=; b=QyzVSYSkc8a+h+dcbT2SR9XKZ0AunJKRdu238Lq9GPy6jynvN1//Do4qqLNLYcw4Ip KYhNSu7t/Lo5Zft53eC/onXkA7VuKuHJp13la1DJrVjVAOAI4ArvJITEg+FJEdKVYyn5 2sXOUWlNMngVkUDY6mXhlZiGgtvJ1zAXaSGleBDVCmN1FPer9wPgrwGBtrNHBf7G0v/Y qkOCRc8z/eq/AHlpGuQugKoaQmpq2JSjxu14pQNTxEw3SQtvYci02FicQEQBczqIG5es O4RjNIMnxHFA1bQvCVSHEIWcx0PqFBIMoxFLsjc7n2zMpsTCsKUEXSNc0UT1Lmr1NrGC culQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=36EKIzcvjND0MqxVsAWJSiX0e077beZn5Du8xrIKnOM=; b=PWmcFL3Om56sFLdEtjLSRUHztDGG7Fa8oR82+Z+/wGqHVanwsf1bCqePQQLmtKQXgg Kc5bWe/aVXAFU0hfUy9zhwkIqtXRNaEF0gCFcr/ABCeTqCMwokVx1ppHKbh5k17yU99N LbWF7CXxakCn3o+FEOOFXPGqVTBsPHy5o9dvJcK9KoLKcI1BXaF9+2VmcDj/pJcf4gjk wlVjHE5cpaJ8+HXxHiipx6X091xw6uT5zx/+nBljkAeGcTiml4IjATY+uQ6t/X8tX95z /v7tdE2vbpmDeUL9zabT2JZVOAasXPAGviR9Mk9qppp14W1WBBotaPEJX+1qsUtsRx2U NYuA== X-Gm-Message-State: AFeK/H1yPnqtVxg4EvTD/LGkZxQAyvOZ1VdbWJPlacL65KPQigurY1jgRqh3is60pXBXtA== X-Received: by 10.237.53.124 with SMTP id b57mr49919721qte.113.1491671846235; Sat, 08 Apr 2017 10:17:26 -0700 (PDT) Original-Received: from [18.189.26.125] (dhcp-18-189-26-125.dyn.mit.edu. [18.189.26.125]) by smtp.gmail.com with ESMTPSA id b126sm5378644qka.26.2017.04.08.10.17.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Apr 2017 10:17:25 -0700 (PDT) In-Reply-To: <86efx22a7u.fsf@molnjunk.nocrew.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22f 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:213818 Archived-At: On 2017-04-08 11:24, Lars Brinkhoff wrote: > Clément Pit-Claudel wrote: >> It doesn't need to: since vectors and lists are used, it's natural to >> use vector and list functions on these objects. It goes further: the >> cl-struct predicates are explicitly *documented* to work fine on >> vectors: >> >> Given any Lisp object X, ‘(person-p X)’ returns true if X looks >> like a ‘person’, and false otherwise. (Again, in Common Lisp this >> predicate would be exact; in Emacs Lisp the best it can do is >> verify that X is a vector of the correct length that starts with >> the correct tag symbol.) > > Not any more. When I made my change, I found this part of the manual > and deleted the text in parentheses. And also changed much of the other > places you quoted. Yup, of course; it was natural to update the manual along with the change. I was pointing to the documentation as it was when people introduced the `arefs' and 'cl-defstruct' whose validity is now under discussion in my their code, because the question was whether people should have known that using `aref' this way was relying on an implementation detail.