[racket] Adding raw string syntax

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Aug 9 12:27:27 EDT 2011

5 minutes ago, Sam Tobin-Hochstadt wrote:
> On Sun, Aug 7, 2011 at 10:44 AM, Joan Arnaldich <jarnaldich at gmail.com> wrote:
> > BTW, I searched the list and the docs for this feature before
> > implemeting mine... the only thing I found were some old questions
> > on backslashing in strings for regexes. But maybe this was already
> > implemented somewhere else and I couldn't find it...
> 
> The @ syntax originally designed for Scribble is very helpful for
> this sort of thing.

A concrete example for using it as a raw string:

  #lang at-exp racket
  (define r string-append)
  (display @r{...nearly free text here...})

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.