The thing is that using two {}s is actually useful for curried
functions.  For example:

  #lang scribble/text
  @(define ((foo . text1) . text2)
     @list{1. @text1
           2. @text2})
  @@foo{blah blah blah}{foo bar baz}

and this extension holds for a [] that follows a {}.

But there is a little known extension of the @... escape syntax -- you
can use bars not only to delimit the racket expression from the
surrounding text, you can also use it to include multiple expressions
with no text between them.  For example, instead of the:

> @foo{3
> 4}[5 6]

which you suggested, you can use

  @foo{3
       4@|5 6|}

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to