[Top][All Lists]

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

Re: [r6rs] #\x0 is a perfectly valid character datum representation

From: Mike Gran
Subject: Re: [r6rs] #\x0 is a perfectly valid character datum representation
Date: Mon, 21 Jun 2010 13:27:36 -0700 (PDT)

> From: Andy Wingo address@hidden

>> #\x0

> Add (read-enable 'r6rs-hex-escapes) to your 
> guile init file.

> Mike: is there a more sensible default than the one we 
> have?

The idea behind not enabling it by default is because the
r6rs *string* escapes are not backwards compatible with
the hex escapes used with Guile 1.8.x.

"Hello \x57orld" vs "Hello \x57;orld"

There is no perfect way to have both Guile 1.8.x and r6rs
*string* hex escapes at the same time.  You could hack something
together, but, there would be corner cases where it
might be invalid. That's why it was made a reader option.

But, r6rs hex *character* escapes and Guile 1.8.x octal
character escapes could logically coexist without confusion.

But, it might be confusing to have r6rs hex character escapes
that work by default while r6rs string escapes don't work by 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]