[plt-scheme] Bug in here strings?

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Apr 3 11:57:13 EDT 2008

On Apr  2, pp wrote:
> Hi there. I think there is an inconsistency in the way here strings
> are evaluated in the REPL versus when loaded from file. This is
> Windows, 372.
> 
> Consider the following module:
> 
> (module t mzscheme
>   (provide test)
> 
>   (define test #<<!
> test
> !
>     ))

FWIW, you can use the scribble reader in a similar way:

  #reader(lib "reader.ss" "scribble")
  (define test
    @string-append{blah
                   blah
                   blah})

It's more well behaved in many ways, like ignoring the indentation --
and translating all newlines to "\n" strings.

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


Posted on the users mailing list.