Subject: Re: Newbie questions [Followup to comp.lang.lisp]
From: (Rob Warnock)
Date: 1999/05/06
Newsgroups: comp.lang.lisp
Message-ID: <7grqp0$>
Christopher R. Barry <> wrote:
| (Rob Warnock) writes:
| > Johan Kullstam  <> wrote:
| > | lisp has infix syntax.
| > +---------------
| > 
| > I think you meant to say, "Lisp has PREFIX syntax".
| > (At least, I *hope* that's what you meant to say...)
| I believe I remember seeing someone use an infix syntax package (in
| this group?) and it looked something like #I(2 + foo * pi ...).

Uh... That's what Lisp *can* do, if *you* choose to write a reader macro
function that implements an infix parser and bind it to a dispatch character
(in this case, "I", which is undefined by default in standard CL) for the
non-terminating dispatching macro character "#" in *your* application program.
But it's not built into Lisp. Lisp's native syntax (in the absence of macro
characters) is prefix:

	(+ 2 (* foo pi))


Rob Warnock, 8L-855
Applied Networking
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA