[Top][All Lists]

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

Re: Anaphoric macros: increase visibility

From: Tino Calancha
Subject: Re: Anaphoric macros: increase visibility
Date: Mon, 16 Jan 2017 11:44:13 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

On Sun, 15 Jan 2017, Stefan Monnier wrote:

Tino writes:
(pcase-let ((`(,a ,b) '(1 2 3)))
(list a b))
==> (1 2)
although the pattern doesn't match.
I can be bitten with that pitfall as well.

I think the problem is in the name: it really should be called just `let`.
It does not do any *match*, instead the pcase pattern is only used to
specify how to *extract* the data we want.
I see.  Then, `pcase-let' is somehow similar than `-let' in dash.el.

reply via email to

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