|
From: | Stefan Monnier |
Subject: | Re: Replace trivial pcase occurrences in the Emacs sources |
Date: | Wed, 31 Oct 2018 16:06:38 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> (pcase '(1 2 3) > ((let a 3) a)) > ==> 3 > > Is the used pattern destructuring? It binds a variable. I think it's not worth trying to define precisely which patterns are "destructuring" and which aren't. We can just show two clear examples, like a 'emacs pattern and a `(,a . ,b) pattern to contrast the two. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |