From 428053f0c2e4e143a7b033ca793902fe2e62e98e Mon Sep 17 00:00:00 2001 From: Andreas Roehler Date: Tue, 20 Oct 2009 19:53:24 +0200 Subject: [PATCH] check regexp for syntax --- code/elbb.el | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/code/elbb.el b/code/elbb.el index de90abd..d6e48e6 100644 --- a/code/elbb.el +++ b/code/elbb.el @@ -1,3 +1,38 @@ +* prefer cond over case? + +;; From: David Kastrup +;; Date: Mon, 12 Oct 2009 10:03:39 +0200 +;; To: help-gnu-emacs@gnu.org +;; Subject: Re: Perferr cond over case? + +;; pjb@informatimago.com (Pascal J. Bourguignon) writes: + +;; > Nordlöw writes: +;; > +;; >> Does the use of the cl macro case() incurr some loss of performance +;; >> compare to using cond() instead? +;; > +;; > (macroexpand '(case (* 2 2 2 2 3) +;; > (10 'one) +;; > ((24 42) 'two) +;; > ((3 33) 'three) +;; > (otherwise 'unknown))) +;; > --> +;; > (let ((--cl-var-- (* 2 2 2 2 3))) +;; > (cond ((eql --cl-var-- (quote 10)) (quote one)) +;; > ((member* --cl-var-- (quote (24 42))) (quote two)) +;; > ((member* --cl-var-- (quote (3 33))) (quote three)) +;; > (t (quote unknown)))) +;; > +;; > What do you think? + +;; Before or after byte compilation? + +;; -- +;; David Kastrup + + + ;; * batch-mode ;; From: Decebal -- 2.11.4.GIT