[racket] heredoc syntax

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Thu Aug 18 18:10:03 EDT 2011

On 08/18/2011 04:00 PM, Eli Barzilay wrote:
> Three minutes ago, Jon Rafkind wrote:
>> Ok. For future reference this is how its done:
>> #lang at-exp racket
>> @string-append{
>> foo
>> bar
>> }
> Yeah, and you can use a more convenient name, indent the text, and/or
> the whole thing, and get the same result.  For example:
>    #lang at-exp racket
>    (define str string-append)
>    (define text
>      @str{
>        foo
>        bar
>      })
> (Before you complain: the shorter name is not to make it shorter, it's
> because the `-append' thing is just a by-product of the available
> function that can append strings, so it shouldn't be there.)

My issue is that first I try @{foo} and get the error "expected a procedure, given a string". At which point I remember kevin telling me off-hand how you (eli) 
had a trick to deal with these situations, which was to put string-append between the @ and {.

Could @{ as a special case do string-append for me?

(I'll get to the readtable stuff in a different email)

Posted on the users mailing list.