[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newline in string literal?



On May 15, Riku Saikkonen wrote:
> What's a non-printable character? If this includes only ASCII codes
> 32-127 (as isprint(3) in C does),

Yes, it's everything which is not isprint.


> I think it would be a good thing to have a provision for other
> printable characters (e.g., ISO Latin-1 on Unix), so that the
> interpreter would continue to respond like:
> > "p=E4=E4sky"   =20
> "p=E4=E4sky"
> and not:
> > "p=E4=E4sky"
> "p\344\344sky"

Well, Matthew did say that a parameter can be added for such cases...
I guess that it wouldn't take much to make it possible for a parameter
that specifies a range of characters you do want to see literally or
something similar -- my guess is that any "real" solution that uses
locale settings or something similar is going to be a nightmare to get
working in all platforms...


> Otherwise, I can't think of a problem, except perhaps compatibility:
> older versions of MzScheme can't read strings written by the new
> version. (But it should work the other way around, so this might not
> be a problem - though it would be good to say this in the
> documentation.)

Isn't that the natural way things go?

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