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)

forcing delimiters after escapes in quoted strings Ray Blaak 11 Jul 2005 16:32 UTC

So, will we be able to have strings like "\x41bc" be interpreted as
"abc" or will it become an error?

Forcing it to be "\x41 bc" will become unbearably tedious and confusing
to readers also used to programming in other languages.

It will become a large source of errors for string literals
transliterated from other other language environments.

If the compiler can detect it as an error, it can fix it, at least with
the \u and \x escapes. Other languages don't require a delimiter, they
either expect a varying sequence of digits or a fixed number. This is
more user friendly and trivial to implement.

Cheers,
Ray Blaak