Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Infix

2 views
Skip to first unread message

Greg Menke

unread,
Nov 26, 2001, 3:25:00 PM11/26/01
to

Hi,

I'm interested in giving infix a try in CL, I found an infix package
in the CMU archives. Is there a "canonical" CL infix-related package
maintained elsewhere? Google didn't come up with much seemingly
relevant.

Thanks,

Greg Menke

Drew McDermott

unread,
Nov 27, 2001, 10:11:29 AM11/27/01
to
By "infix" do you mean some sort of macro that would enable you to write, e.g.,

(infix x := y * (f(u) + f(v)))

or do you mean a full-scale lexical analyzer and parser that would allow you to avoid seeing Lisp syntax at all?  So you might write

define fib(n)
{
   if n<2 then 1 else fib(n)+fib(n-1)
}

There have been packages that allowed this second form of infix.  Thirty years ago there was a package called MLISP of this variety.  But people who disliked Lisp syntax tended to drift to completely different languages, such as ML, that have evolved in different directions from Lisp.

   -- Drew McDermott
 
 
 
 

Andreas Bogk

unread,
Nov 27, 2001, 10:58:33 AM11/27/01
to
Drew McDermott <drew.mc...@yale.edu> writes:

> There have been packages that allowed this second form of infix. 
> Thirty years ago there was a package called MLISP of this variety. 
> But people who disliked Lisp syntax tended to drift to completely
> different languages, such as ML, that have evolved in different
> directions from Lisp.

Well, there's always Dylan.

Andreas

--
"In my eyes it is never a crime to steal knowledge. It is a good
theft. The pirate of knowledge is a good pirate."
(Michel Serres)

Eric Moss

unread,
Nov 27, 2001, 12:50:53 PM11/27/01
to

Infix arithmetic, or "infix" everything? I could see infix arithmetic
being handy when coding equations pulled from a paper, but infix
anything else totally emasculates lisp, doesn't it?

Eric

Greg Menke

unread,
Nov 27, 2001, 1:03:23 PM11/27/01
to
Eric Moss <eric...@alltel.net> writes:

Infix arithmetic. I prefer Lisp's normal style, but would like to see
what its like to use infix, and how it works out into real Lisp. I'll
give the CMU version a try I guess.

Gregm

0 new messages