[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NOISE] Curly braces [was Re: Curl]




> From: Matthias Felleisen <matthias@ccs.neu.edu>
> Cc: matrix@alum.mit.edu, ll1-discuss@ai.mit.edu
> Reply-To: matthias@ccs.neu.edu
> Date: Thu, 29 Nov 2001 22:49:56 -0500 (EST)
> 
> 
> >> M Vanier writes: 
> >> I'm thinking of something along the lines of read-macros to handle infix
> 
> You mean infix as in
> 
>   sualocin 17> mzscheme
>   Welcome to MzScheme version 200alpha1, Copyright (c) 1995-2001 PLT
>   > (map (lambda (x) (x . < . 10)) (list 1 7 11 22))
>   (#t #t #f #f)
>   > 
> 
> I like Matthew's . . notation for that, but to be perfectly honest, after
> 15 years of (), I don't need it.
> 
> -- Matthias
> 

Hmmm, more like

(map (lambda (x) {x < 10}) (list 1 7 11 22))
(#t #t #f #f)

BTW I had no idea you could do that (your version) in PLT scheme :-)  What
other buried treasures are there?

I agree with your point about not needing it after a while, but if you were
doing heavy Fortran-style numerics it might be convenient to have an infix
parser.

Mike