emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: Taylan Ulrich Bayırlı/Kammer
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Sat, 17 Oct 2015 20:11:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Artur Malabarba <address@hidden> writes:

> + (if (and (consp form) 
> + (eq '\, (car form)) 
> + (consp (cdr form)) 
> + (null (cddr form))) 
> + (cadr form)))
>
> There's nothing wrong with this code. But, just FYI, here's what it
> would look like with pcase (assuming I didn't mess up writing this on
> my phone).
>
> (pcase form
> ((`\, x) x))

As pointed out somewhere else in the code:

    ;; We use the match-comma helpers because pcase can't match ,foo.

Taylan



reply via email to

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