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 17:02:32 -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 X-Trace: blaine.gmane.org 1491599010 30659 195.159.176.226 (7 Apr 2017 21:03:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 21:03:30 +0000 (UTC) Cc: Stefan Monnier , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 07 23:03:26 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 1cwb2Q-0007C8-A6 for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 23:03:22 +0200 Original-Received: from localhost ([::1]:52576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwb2W-0002pB-2l for ged-emacs-devel@m.gmane.org; Fri, 07 Apr 2017 17:03:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwb1e-0002nl-W9 for emacs-devel@gnu.org; Fri, 07 Apr 2017 17:02:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwb1e-0005Rw-5L for emacs-devel@gnu.org; Fri, 07 Apr 2017 17:02:35 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:32817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwb1e-0005Rk-0R for emacs-devel@gnu.org; Fri, 07 Apr 2017 17:02:34 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id b187so99539049oif.0 for ; Fri, 07 Apr 2017 14:02:33 -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; bh=txPNNp3X8p1i65Fu3gEvw5HOUvqzG9mCgc+HJBpiNUI=; b=sgBqJi0ZuS/FeTkQmFzHNsyWoDi7vYLf393I1YMSVIb3F1Q5rytX/u7Gts523/R6ij SCkPqWcIl/K61qGycBhrlOITi+NUIc+RXb8kAvxx1Cjr8oOTIGBzN4eRNueGExPfEG6+ JYN+j/96c4IBLApIq5Po5JFf5Vgn6cWuD5QpROJdAbWWpZGwN2VjZPXx8JeKdyiYjzkf 6mba1Hzl0iZUN6/8vtS4PDqntMZpMjSvAh1PWpFagQcAd+Fk+5VquU1uThJd10BpJdGv 6mLVCtJBmLZvjb0EQTCRfxNiJi4SJx+zYjqGaOJYcv7EdnDHExOG0zpJcj884DTJnm5f BcmQ== 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; bh=txPNNp3X8p1i65Fu3gEvw5HOUvqzG9mCgc+HJBpiNUI=; b=L7RBDmFJgcp6ApBe0zS9TxRY5fL0XqaTbpMqHcf2o+/qEVruYg0Q0Ql7t8gIZbOz4P 7FaBXi3rhKXqsqDnLX8zfANkvI2xrVtPNM8lWNuQd1UKGKoDHlcRBOYTOJxYZN9j8ZDf mwj8VypyV8NyV1SwQhO0Wz34uzLzzdjKa67f7EMkTO89YNCx1yUmPIwkzlYqh1umnZNB v45qjpOkmYNtuDdPkndtio/belvuwAlDYDYlbL6QR6KvLyT4xnxHXoLXCM+dRP6jSOLb 8//eMi64bt3k/EhIlzpH0HL6L1AEJ7f3Rn+eQdYxNB9VxTzDFjQEn+SJKg+FT1iu1ylt pUXw== X-Gm-Message-State: AN3rC/4aoMKabR9BHOJkvLnc9LPwCxvgwhHLIFNrjHuBs6yFGulwWumGgWaifrfK0vL19T32iWBH+maUR3rvTg== X-Received: by 10.202.71.2 with SMTP id u2mr253186oia.187.1491598953237; Fri, 07 Apr 2017 14:02:33 -0700 (PDT) Original-Received: by 10.157.80.133 with HTTP; Fri, 7 Apr 2017 14:02:32 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: SMVjoIB1BVIJS-4K52-pX2E53-o X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::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:213785 Archived-At: On Fri, Apr 7, 2017 at 4:49 PM, Drew Adams wrote: > > I don't understand the backward-compatibility argument. > A record type has not existed before. When/where do we > already have `aref'/`copy-sequence' being applied to > something other than a sequence/array? Up until the recent changes, the things produced by cl-defstruct make-foo functions were vectors with the first element being the symbol 'cl-struct-foo'. So they could be indexed with aref and copied with copy-sequence. Now they are "record" objects, but we don't want to break code that uses aref and copy-sequence on them.