Email list hosting service & mailing list manager

forcing delimiters after escapes in quoted strings Ray Blaak (11 Jul 2005 16:32 UTC)
(missing)
Re: forcing delimiters after escapes in quoted strings Michael Sperber (12 Jul 2005 13:55 UTC)
Re: forcing delimiters after escapes in quoted strings Matthew Flatt (12 Jul 2005 13:13 UTC)
Re: forcing delimiters after escapes in quoted strings Ray Blaak (13 Jul 2005 06:44 UTC)

Re: forcing delimiters after escapes in quoted strings Michael Sperber 12 Jul 2005 13:55 UTC

Matthew Flatt <xxxxxx@cs.utah.edu> writes:

> We'd much prefer to not invent yet another syntax for strings. There is
> a high bar for doing something other than established conventions.
>
> My feeling is that the established C notation is not ideal, but it is
> reasonable and more widely understood than any other notation.

The draft alludes to an alternative:

> Another possibility would be to use a delimited Scheme number within a
> string, as in Gambit.

Concretely, this would mean using Scheme literals for the scalar
values like so:

#\#e65
#\#e#x41
... are all syntaxes equivalent to #\A.

In strings, they would need to be delimited by something, say ";":

"\#e65;BC" => "ABC"

(Gambit currently has the char literals, but not the strings, I
believe.)

This would have the advantage of being in line with the regular
numerical literals, thus avoiding redundancy in the lexical syntax.
It is, of course, completely different from what C and Java have.

--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla