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: Fri, 7 Apr 2017 15:25:27 -0400 Message-ID: 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> 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 1491593266 6175 195.159.176.226 (7 Apr 2017 19:27:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 19:27:46 +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 Fri Apr 07 21:27:42 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 1cwZXk-0000Qr-Ma for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 21:27:36 +0200 Original-Received: from localhost ([::1]:52321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwZXp-0006aE-3F for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 15:27:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwZVi-0005NC-L8 for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:25:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwZVh-0006SV-Qc for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:25:30 -0400 Original-Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]:35755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwZVh-0006SF-Ln for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:25:29 -0400 Original-Received: by mail-io0-x233.google.com with SMTP id r16so1642426ioi.2 for ; Fri, 07 Apr 2017 12:25:29 -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=j03fU7PRMLUPbpcNmQmdnX4xtZkoSKj4nuE8RDOYmh8=; b=iA8zIOoJ9lBHSUFcNtz1NDaFM1c5tmhpHpjYrDO7RxFGjXES5olaN2HMyMMlPGH6eT izNKI2fDYMWUsdIh4yb12iBMQsoIcPxI9prE+QO6niBFhpJmeq2p5iKN81Sdejwfm2D4 y8WB0GcUZp8pluCtliBJNG3jxbDI5fZIEyfNzKC+9I+N/yuf8y4q8y3jMJJulO2i1fes 00arIM5zOz1ExRh+QDW/HomM3LgWePd13ucQuzWB9j1DQvN+2VmtIvTF+UKHHZr2umXl gcVNTl+K3OsuDKCTxjrsnpzLVFx3eHnBoP+bwrErJBelUzyHyetSB4eypuHZoqG/mwqe l1Jw== 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=j03fU7PRMLUPbpcNmQmdnX4xtZkoSKj4nuE8RDOYmh8=; b=Pr8J2eKCcE2v7tb6JxtXbC2N2i9IpLAOYO+rz4j1EiurzQloj7yz1NPQsc9G2AiNm8 8sFs2RwUmXZrIsxGzvdHaDfsuE3rAet+2R9TAZlhWBwDrTyNobLHEJbY1hG9VV3q5PVe S9Du0z629GQq4/SA8GCAQ/4ji2G1CKm8cqM8EzxhWLcTAhYkmkPKB+OVdl3c/d1ekqzD ZsaXo36zQrG5oe9gSQMG7F2dmKPrt6ddCT5RFdKrwY2LQ8q5AntZUMxM9nZysZx2y2MQ lTr4DPBcJMM55SdL3neUh9UwQdE2bkY4Rkx2ZTyPQC3k8vD9uM5aCLHT7dICO0Axvgt/ ke3Q== X-Gm-Message-State: AN3rC/5xwIb+nzvU8tjK18BDGzkhDHo+AiHKJRTJZdflTsZRVKaWpV+IPIZ+2m/TowdBeg== X-Received: by 10.107.188.194 with SMTP id m185mr6046536iof.137.1491593128636; Fri, 07 Apr 2017 12:25:28 -0700 (PDT) Original-Received: from ?IPv6:2001:470:8b2d:1a:9bab:c177:73b2:20a9? ([2001:470:8b2d:1a:9bab:c177:73b2:20a9]) by smtp.gmail.com with ESMTPSA id h91sm2821342ioi.24.2017.04.07.12.25.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 12:25:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::233 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:213778 Archived-At: On 2017-04-07 15:07, Noam Postavsky wrote: > If you do (cl-defstruct person age height), you > don't care whether 'age' goes before 'height', just that person-age > gives you the age field. Sometimes you do — for example, you might know that multiple structures in your application have the same data in their first field, and if so (aref x 1) should work. It's a bit like hashtables: if I have multiple hashtables that all have an "age" key, I can access that key independently of what else is in the table.