From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: If records are not sequences, why does aref work on records? Date: Fri, 7 Apr 2017 15:41:14 -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: quoted-printable X-Trace: blaine.gmane.org 1491594113 12728 195.159.176.226 (7 Apr 2017 19:41:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 19:41:53 +0000 (UTC) Cc: Emacs developers To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 07 21:41:49 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 1cwZlQ-0002LO-2B for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 21:41:44 +0200 Original-Received: from localhost ([::1]:52363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwZlU-0002jh-C5 for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 15:41:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwZkz-0002jP-MI for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:41:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwZky-000520-Qg for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:41:17 -0400 Original-Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:34961) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwZky-00051j-Lz for emacs-devel@gnu.org; Fri, 07 Apr 2017 15:41:16 -0400 Original-Received: by mail-oi0-x22b.google.com with SMTP id f193so97228008oib.2 for ; Fri, 07 Apr 2017 12:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=/qg/Q8JjYeJKX3zi3WdQdrMfOrDAPsERaOLGECoQi0I=; b=OLePnyn+EPKOfpULi8mWcPCIpI9wB9y0Iuxds4t4/ZfOki7wDUEaFT53iKq2luUGk1 t4820uuizQ5sqysPrORqGlUTVaJpvHgQGa4TkG35t7Bdla4lADSrtYUK4kqMnPPBeDBz zoCapEIFWnvO3WD/kBQpMHHLkKOxG3cXLUEliiPV6uCKl4zaVTE9PL3e6AJJBWJ+kh0W 2bk/an0obmoT2ppxT1wVlYAPz3II18lAyiOo14K7l4c3zKaq7uiYWgAMPD1zlZAmBLYH JPc9zB7aztQGJHcOm1kJORD/wvp095KHNYF+l6bppFmF7QL5zGcKgmTWBa1DExKftGed R+eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=/qg/Q8JjYeJKX3zi3WdQdrMfOrDAPsERaOLGECoQi0I=; b=czSmbJ4ns0CLBQivxkMm6MqGlfOdQCwd72gt+5n7tzwoK3HaV8fRfV0GtsY8dZ/z2z 0kGFm1Ru+bNbbEhQ0TNW7y7xV7oE/vjN/f7JliefwFAGz/aD/aer10uD1OjDxU/XVAwP q40e6HFq+0XlY/QN5wY5ImNsp84jZofWVF/wkpN3MGw9ReVHjxwHnL0/qe08B1pKhPCr DCtDT6lkebsb3K7s/YcysCnhiEyHG+rM6w85HuGCwBLLKbK9+SkVn0Qwh0kjsffMZgpI acchdKBxzVxCGyLf/ZuBc+z5kKCRuhvG7dyveR7hJgNPnmgi7B9Hytj96caezmm8pnta gfuQ== X-Gm-Message-State: AN3rC/4qL+2P3wj64Tw/waH6W0JvsBGl5Ya8XPbDWPfwidD9d5KPMhshka3SpO+c9nRRuNI1Ts1dzw5Mp9vI7Q== X-Received: by 10.157.43.35 with SMTP id o32mr4694801otb.79.1491594074736; Fri, 07 Apr 2017 12:41:14 -0700 (PDT) Original-Received: by 10.157.80.133 with HTTP; Fri, 7 Apr 2017 12:41:14 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 8Qai-jWZHhSBjy59Tv4FSPdY4aU X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22b 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:213779 Archived-At: On Fri, Apr 7, 2017 at 3:25 PM, Cl=C3=A9ment Pit-Claudel wrote: > 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 =E2=80=94 for example, you might know that multiple stru= ctures in your application have the same data in their first field, and if = so (aref x 1) should work. In that case, you should be probably be using :include for the common parts, or else :type to explicitly use vectors. I'm sure you can come up with exceptions to that too though :)