|
From: | Andreas Röhler |
Subject: | Re: pcase and minus-sign |
Date: | Mon, 5 Dec 2016 10:11:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
On 03.12.2016 16:43, Stefan Monnier wrote:
Must confess some hardship of understanding. If an expression may evaluate to a certain value or not, that depends resp. may depend on the state at run-time.No: whether it *will* evaluate to that value depends on the state at run-time. But whether it *can* evaluate to it doesn't. Stefan
At any case permits a much nicer implementation of complement-char than done via plain cond, thanks.
(defun general-close--return-complement-char-maybe (erg) "For example return \"}\" for \"{\" but keep \"\\\"\". " (pcase erg (34 ?\") (?' ?') (?\( ?\)) (?\) ?\() (?\] ?\[) (?\[ ?\]) (?} ?{) (?{ ?})))
[Prev in Thread] | Current Thread | [Next in Thread] |