[Top][All Lists]

[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 22:59:26 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)

>> 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.

That's right.  It's called `pcase-let` because it's in the `pcase`
package (because it uses pcase pattern syntax and implementation) and
hence must use the `pcase-` prefix.

The main advantage of the pcase pattern syntax is its regularity which
makes it extensible (see for example the (re-match REGEXP) pcase-macro
I recently posted which lets you match against a regexp and extract
submatches into variables at the same time).


reply via email to

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