[racket-dev] P4P: A Syntax Proposal

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Wed Jul 28 18:14:56 EDT 2010

>> Infix notation can be achieved unambiguously if you use LL(1) with
>> backtracking
> ...which I didn't want to do.
>
> Pedagogically, it has been immensely valuable to explain to kids that
> + and - aren't some special thing, but are just mere operators -- and
> so are string-append and image-overlay and so on.
>
> Plus, there isn't much arithmetic in many Scheme programs, which means
> the quantity of actual infix is small.
>
Infix goes beyond just arithmetic, ruby allows this sort of syntax

some_list.map{...}.filter{...}.map{...}.fold_right{...}

Which I find much more readable than

(fold-right (map (filter (map some_list)))


Posted on the dev mailing list.