emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sweeter Emacs Lisp


From: Stefan Monnier
Subject: Re: Sweeter Emacs Lisp
Date: Tue, 16 Jul 2013 05:11:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]