[racket-dev] alt-exp syntax

From: Everett (webj2 at unoc.net)
Date: Thu Aug 26 16:07:31 EDT 2010

The curly brackets go around an expression in function position.  You
can still use either square brackets or the "_(" opening paren to write
a normal s-exp, like:

[lambda: [x] x(x)
 lambda: [x] x(x)]

for cases when that is more to your tastes.

-Everett



On Thu, 2010-08-26 at 22:01 +0200, Jos Koot wrote:
> One of the examples reads:
> {lambda: [x] x(x)}
> (lambda: [x] x(x))
> Notice the curly brackets in the first line.
> I am not sure I like this.
> Nevertheless a nice idea to use colons in order to reduce the number of
> parentheses.
> Jos
> 
> > -----Original Message-----
> > From: dev-bounces at racket-lang.org 
> > [mailto:dev-bounces at racket-lang.org] On Behalf Of Everett
> > Sent: 26 August 2010 20:10
> > To: plt-dev Developers
> > Subject: [racket-dev] alt-exp syntax
> > 
> > I don't know if anyone cares about this, but I made a reader 
> > and #lang language for the alternate syntax I came up with 
> > (direct, obvious conversion to s-exp but allows writing fewer 
> > parens). Implementations are usually better appreciated than 
> > mere proposals. You can get at it
> > here: http://www.neptic.com/np/software/alt-exp.php
> > 
> > I noticed that one can provide a syntax colorer (the default 
> > is fine for my #lang language), but is there a way to provide 
> > an indenter since the default handling makes editing my 
> > alt-exp syntax slightly annoying in DrRacket.
> > 
> > 
> > Thanks,
> > -Everett
> > 
> > _________________________________________________
> >   For list-related administrative tasks:
> >   http://lists.racket-lang.org/listinfo/dev
> 
> 



Posted on the dev mailing list.