Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!titan!dorai From: dorai@titan.rice.edu (Dorai Sitaram) Newsgroups: comp.lang.lisp Subject: readmacros in CL: getting "[", "]" to work as "(", ")" Message-ID: <2848@kalliope.rice.edu> Date: 15 Mar 89 00:37:34 GMT References: <424@soi.UUCP> Sender: usenet@rice.edu Reply-To: dorai@titan.rice.edu (Dorai Sitaram) Organization: Rice University, Houston Lines: 14 Could someone please tell me how to define brackets ("[", "]") as macro characters in CommonLisp so that they have the same effect as the usual parens (but make for more readable code)? E.g., (let ([x 2]) (+ x x)) should parse as (let ((x 2)) (+ x x)). Since this is about the only place where I'll ever (?) have to mess with tricky readmacros, and the chapter on Input/Output in CLtL is way too humongous right now, I request indulgence for not figuring it out for myself. Email would be divine. --dorai