[racket] specifying strings without escaping backslash

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Dec 5 05:30:42 EST 2013

On Wed, Dec 4, 2013 at 11:47 PM, Harry Spier <vasishtha.spier at gmail.com>wrote:

> 2)
> What am I doing wrong here.  -- everything :-)
> I'm trying to change the command character from @ to #  so that I can have
> raw strings containing both \ and @
> looking at the racket documentation here:
>
> http://docs.racket-lang.org/scribble/reader-internals.html?q=at-exp#%28def._%28%28lib._scribble%2Freader..rkt%29._make-at-readtable%29%29
>
> I've done this:
>
> #lang at-exp racket
> (require scribble/reader)
> (use-at-readtable #:command-char #\#)
> (define RAW string-append)
> (display #RAW{C:\Users\Harry\SANSKRIT\GRETIL ALL\adyappu.htm})
> (display #RAW{harryspier at hotmail.com})
>

I don't know enough about readtables to help you here, but it seems that
`use-at-readtable' is only for the REPL:
http://docs.racket-lang.org/scribble/reader-internals.html?q=use-read-table#%28def._%28%28lib._scribble%2Freader..rkt%29._use-at-readtable%29%29

Someone ought to build the `at-any-exp' language Matthew was talking about
a few days ago, so that one can write
#lang at-any-exp $ racket
$~a{Yay, dollar-exp syntax!}

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131205/af8de1d5/attachment.html>

Posted on the users mailing list.