Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

December 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Nov  Jan

The macro I'd like to have

Friday, December 17, 2004

On c.l.l., a reader asked "I was wondering if you could point me to some pages describing the idioms for using RDBs with LISP". Pascal Bourguignon provided the following chunk of code:

(with-adequate-macrology
    (assoc :name
	   (first
	    (select (id name salary) (from employee)
		    (where (> salary 1000000) #| don't dream, it's cents |#)))))
Hehe, that "with-adequate-macrology" is the macro I've always wanted to have! ;-)

emacs Copyright © 2004 by Bill Clementson