[Developers] quoting in par-file strings
Jonathan Thornburg
jthorn at aei.mpg.de
Fri Jun 3 10:08:15 CDT 2005
I proposed:
>> * A string is delimited by either single-quotes ('...')
>> or double-quotes ("...").
>> * Within a string delimited by single-quotes, double-quotes may be
>> used with no need for special quoting
>> * Within a string delimited by double-quotes, single-quotes may be
>> used with no need for special quoting
>> * Backslash quotes the next character, i.e.
>> * \' gives a single-quote character without delimiting the string
>> * \" gives a double-quote character without delimiting the string
>> * \\ gives a backslash character in the string
Frank:
> I think you should add that Backslash quotes should only be possible in
> double quoted strings, which would also make your point 2 obsolete.
My intent is to make single and double quotes symmetric, i.e.
to make the same backslash-escapes work in both of them.
ciao,
--
-- Jonathan Thornburg <jthorn at aei.mpg.de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
More information about the Developers
mailing list