[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
- Re: Sweeter Emacs Lisp, (continued)
- Re: Sweeter Emacs Lisp, Stefan Monnier, 2013/07/15
- Re: Sweeter Emacs Lisp,
Stefan Monnier <=
Re: Sweeter Emacs Lisp, Andreas Schwab, 2013/07/14
Re: Sweeter Emacs Lisp, Miles Bader, 2013/07/15
- Re: Sweeter Emacs Lisp, Stephen J. Turnbull, 2013/07/16
- Re: Sweeter Emacs Lisp, Stefan Monnier, 2013/07/16
- Re: Sweeter Emacs Lisp, Juanma Barranquero, 2013/07/16
- Re: Sweeter Emacs Lisp, Andreas Schwab, 2013/07/16
- Re: Sweeter Emacs Lisp, Thierry Volpiatto, 2013/07/16
- Re: Sweeter Emacs Lisp, Juanma Barranquero, 2013/07/16
- Re: Sweeter Emacs Lisp, Andreas Schwab, 2013/07/16
- Re: Sweeter Emacs Lisp, Juanma Barranquero, 2013/07/16