emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: Artur Malabarba
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Sat, 17 Oct 2015 18:23:04 +0100

+  (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))


reply via email to

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