From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Sweeter Emacs Lisp Date: Tue, 16 Jul 2013 05:11:48 -0400 Message-ID: References: <8738rh6ftk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373965933 28623 80.91.229.3 (16 Jul 2013 09:12:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2013 09:12:13 +0000 (UTC) Cc: fgallina@gnu.org, Josh , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 16 11:12:11 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 1Uz1Ip-0007DN-0O for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 11:12:11 +0200 Original-Received: from localhost ([::1]:45517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz1Io-0005aa-IZ for ged-emacs-devel@m.gmane.org; Tue, 16 Jul 2013 05:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz1Ik-0005Zn-QV for emacs-devel@gnu.org; Tue, 16 Jul 2013 05:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz1Ij-00022j-FL for emacs-devel@gnu.org; Tue, 16 Jul 2013 05:12:06 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz1Ih-00022M-SQ; Tue, 16 Jul 2013 05:12:03 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r6G9BoSU005650; Tue, 16 Jul 2013 05:11:54 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C4D9DAE2D2; Tue, 16 Jul 2013 05:11:48 -0400 (EDT) In-Reply-To: (Bozhidar Batsov's message of "Mon, 15 Jul 2013 16:30:35 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4640=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4640> : streams <1001268> : uri <1478058> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:161921 Archived-At: > I'll also feel it's about time the Emacs Lisp standard library got a bit of > facelift. In a time when most Lisp have embraces `first` and `rest` > where're still clinging to functions named `car` and `cdr` for instance. > Sure, lib-cl has `cl-first` and `cl-rest`, but I can't see the harm in > having those aliases in the "standard" lib. `first' and `rest' are fine when handling lists, but not when using cons cells which represent other data structures (e.g. pairs, tuples, you name it). Of course, using `pcase' you can extract the car and cdr without any name at all (i.e. using the (FOO . BAR) notation instead). Stefan