From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Sweeter Emacs Lisp Date: Tue, 16 Jul 2013 07:07:28 -0700 (PDT) Message-ID: References: <8738rh6ftk.fsf@gnu.org> <87li5744uv.fsf@catnip.gol.com> <874nbv595b.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373983660 5226 80.91.229.3 (16 Jul 2013 14:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 14:07:40 +0000 (UTC) Cc: emacs-devel To: Thien-Thi Nguyen , Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 16:07:40 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uz5um-0007kS-3D for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 16:07:40 +0200 Original-Received: from localhost ([::1]:46522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz5ul-0008DI-Jx for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 10:07:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz5ui-0008Cz-C7 for emacs-devel@gnu.org; Tue, 16 Jul 2013 10:07:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz5uh-0001Nk-8S for emacs-devel@gnu.org; Tue, 16 Jul 2013 10:07:36 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz5ud-0001Lo-R1; Tue, 16 Jul 2013 10:07:31 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6GE7Us7020755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Jul 2013 14:07:31 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6GE7U2I004511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jul 2013 14:07:30 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6GE7TUW027809; Tue, 16 Jul 2013 14:07:29 GMT In-Reply-To: <874nbv595b.fsf@zigzag.favinet> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161929 Archived-At: > [...] but AFAICS, car and cdr are way more used than first and > rest... the latter were half-hearted attempts at making lisp > "friendly" but have never seemed to have gotten much traction; > whether they're better is at best, arguable... >=20 > CAR and CDR are cool because they align vertically nicely. Not to mention the coolness of cadr, cdar, caar, cddr, and all the rest (Common Lisp, at least). Their names tell you what they do, no matter how complex the operation (e.g. cdaadr). That's not a reason not to define meaningfully named access macros for particular contexts. And it's not a reason not to allow `first' etc. macros or `nth', `elt', `aref' etc. functions. It's just to point out a very useful naming pattern that, once one gets used to it, is beyond compare.