[plt-dev] at-exp and whitespace

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Feb 27 09:32:57 EST 2009

Doesn't Shriram use { } in S-expressions for PLAI?


On Feb 27, 2009, at 9:20 AM, Eli Barzilay wrote:

> JFYI, the reason I implemented it this way is that I was worried about
> what would happen if any whitespace is allows.  I was worried that
> something like this can be a common mistake:
>
>   (define foo "blah")
>   @text{ @foo @foo @foo
>          [but not another @foo] }
>
> The error will be reading this as:
>
>   (define foo "blah")
>   (text " " foo " " foo " " (foo but not another foo) " ")
>
> For a while, I considered allowing only spaces (not newlines), but the
> result is an awkward set of rules to parse @-forms, so I chose to go
> with the simple and uniform option.
>
> --  
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli  
> Barzilay:
>                   http://www.barzilay.org/                 Maze is  
> Life!
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-dev



Posted on the dev mailing list.