Subject: Re: Style question: #\ versus #\Space
From: rpw3@rpw3.org (Rob Warnock)
Date: Sat, 15 Nov 2003 21:08:04 -0600
Newsgroups: comp.lang.lisp
Message-ID: <0MqdnZ-4W-CJdyuiXTWc-g@speakeasy.net>
Thomas F. Burdick <tfb@fallingrocks.OCF.Berkeley.EDU> wrote:
+---------------
| usenet@MartinPomije.eiomail.com (Martin Pomije) writes:
| > In "ANSI Common Lisp" Paul Graham uses #\  for the space character...
...
| ...if you find yourself thinking, "that looks a little too concise,
| almost cryptically so," it probably is.
+---------------

Here's my ultimate example of excessively cryptic (and dangerous) style:

	> (defmacro \  (args &body body)
	    `(lambda ,args ,@body))
	| |
	>

Now you can write all kinds of concise[1] anonynmous functions:

	> (mapcar (\  (x) (* x 3)) '(1 2 3))
	(3 6 9)
	> (position 4 '(5 6 7 8) :test (\  (x y) (= x (- y 3))))
	2
	> 

;-}  ;-}


-Rob

[1] Well, just remember to type *two* spaces after the backslash...

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607