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
--------------88A6C5BF4778F5CD64F0A314
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Greg Menke wrote:
> 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.
>
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
--------------88A6C5BF4778F5CD64F0A314
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Greg Menke wrote:
<blockquote TYPE=CITE>I'm interested in giving infix a try in CL, I found
an infix package
<br>in the CMU archives. Is there a "canonical" CL infix-related
package
<br>maintained elsewhere? Google didn't come up with much seemingly
<br>relevant.
<br> </blockquote>
By "infix" do you mean some sort of macro that would enable you to write,
e.g.,
<p><tt>(infix x := y * (f(u) + f(v)))</tt>
<p>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
<p><tt>define fib(n)</tt>
<br><tt>{</tt>
<br><tt> if n<2 then 1 else fib(n)+fib(n-1)</tt>
<br><tt>}</tt>
<p>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.
<p> -- Drew McDermott
<br>
<br>
<br>
<br> </html>
--------------88A6C5BF4778F5CD64F0A314--
Drew McDermott <··············@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)
Greg Menke wrote:
>
> 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.
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
Eric Moss <········@alltel.net> writes:
> > 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.
>
> 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?
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