[plt-scheme] infix: a package for writing infix expressions in plt scheme

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Mon Dec 4 22:09:19 EST 2006

Hi everyone,


As a joke, I've coded up a small project:

     http://hashcollision.org/svn/repos/projects/infix

(As soon as I can fix some lingering bugs, I'll submit it to PLaneT.)


Here's what it does:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> (require "infix.ss")
>
> (infix 3 + 4 * 5 + 6)
29
> (define (square x) (* x x))
> (infix sqrt(square(3) + square(4)))
5
> 
> (infix 1/2 + 3/4)
5/4
>
> (infix string-append("hello", "world"))
"helloworld"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


The other thing I'll add before the release is chaning comparisons a-la 
Python for the comparison operators '<', '>', etc.


I hope someone is amused... *grin*


Posted on the users mailing list.