[plt-scheme] should .scm's be text-only?

From: Eli Barzilay (eli at barzilay.org)
Date: Sun Dec 24 21:40:03 EST 2006

On Dec 24, George Herson wrote:
> [...]
> As written by DrScheme to file as text:
> 
> ;«Insert-Fraction
> (+ 3 (/ 4 5))
>> ;«Insert-Comment-Box
> ;(display "This line is commented out and in DrScheme 
> ; appears in a proper comment box.") 
>> [...]

This is better than trying to force s-expressions into something that
is used as both the actual language and the encoding of binary objects
(context: this is from previous discussion).  However, it is still
suffering from issues: the resulting file is no longer read/editable
by plain tools -- for example, the text will be sensitive to
indentation, you need to remember that the newline after the ;» marker
is important, you will need some other solution for font information
(otherwise the text is going to all be made of these things).  Also,
you're trying to find some way that can textualize all of these
objects, but they can come from arbitrary snip implementations that
can have no meaningful textual representation.  Oh and don't forget --
you will need to make sure that the solution works fine for Java files
and generic text files.

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


Posted on the users mailing list.