emacs-devel
[Top][All Lists]
Advanced

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

Re: Anaphoric macros: increase visibility


From: Stefan Monnier
Subject: Re: Anaphoric macros: increase visibility
Date: Sun, 15 Jan 2017 10:32:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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.


        Stefan




reply via email to

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