emacs-devel
[Top][All Lists]
Advanced

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

Re: Update of pcase docs for the elisp manual


From: Stefan Monnier
Subject: Re: Update of pcase docs for the elisp manual
Date: Thu, 28 Jan 2016 22:06:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> It's not easy to find an example for a usage of the let pattern that is
> not too complicated and can't be replaced trivially with other patterns,
> and does also make at least a bit of sense.

The original motivation of `let' was in order to add a "missing" binding
in some `or' branches.  E.g.:

   (pcase foo
     ((or `(key . ,val) (let val 5)) val))


-- Stefan




reply via email to

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