[R6RS] Unicode scalar value escape sequences

Michael Sperber sperber
Tue Mar 1 09:19:15 EST 2005


>>>>> "Marc" == Marc Feeley <feeley at IRO.UMontreal.CA> writes:

>> But you still retain CHAR->INTEGER, INTEGTER->CHAR, and READ-CHAR.
>> (And thus, a lot of the current character predicates.)  So the only
>> real difference in your proposal is that you'd have (string?
>> #\a) (or whatever the character notation is) return #t.  Right?

Marc> Well strings would still use the "..." notation, so instead of
Marc> writing (string? #\a) you'd write (string? "a"), and instead
Marc> of (char->integer #\a) you'd write (char->integer "a"), and instead
Marc> of (string-ref "abc" 1) you'd write (substring "abc" 1 2), or
Marc> you could keep the string-ref procedure and define it as  [...]

Well, sure.  But given that you have all kinds of procedures that
operate on strings of length 1 only, I don't see how you're making the
character data type go away in any real sense---you still effectively
have a separate type.  It's just that the type is wedged into the
language in a way that, to me, makes way less sense than the current
setup.

This thread started with me asking about making the syntax for scalar
values in string literals agree with what you have in Gambit-C.  You
never replied to that---any opinion?

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla


More information about the R6RS mailing list