[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What #+rmhackery a good idea #-rmhackery utter nonsense
- To: DCP@SCRC-STONY-BROOK.ARPA
- Subject: Re: What #+rmhackery a good idea #-rmhackery utter nonsense
- From: Masinter.pa@Xerox.ARPA
- Date: Sat, 15 Jun 1985 22:59:00 -0000
- Cc: COMMON-LISP@SU-AI.ARPA
- In-reply-to: David C. Plummer in disguise <DCP@SCRC-QUABBIN.ARPA>'s message of Fri, 14 Jun 85 21:09 EDT
Sorry, my message was a bit too #+:-).
Examples of code that don't use #+ and #-:
(if (status 'lispm)
(progn ... 20 pages of lispm code ...))
(if (not (status 'lispm))
(progn ... 20 pages of generic CL code ...))
I'd prefer
(defun hairy-thing ()
(if (status 'lispm) (compute-hairy-thing-for-LispM)
(compute-generic-hairy-thing))
but if you insist:
(defmacro const (x) `',(eval x))
(defun hairy-thing ()
(cond
((status 'lispm) (const (compute-hairy-thing-for-LispM))
(t (const (compute-generic-hairy-thing))))