[Developers] quoting in par-file strings

Jian Tao jtao at cct.lsu.edu
Fri Jun 3 13:09:09 CDT 2005


>That was the only advantage I could think of, and is one reason the tags 
>tables are supposed to act like you described, but I am not convinced that 
>this is enough to justify the extra coding and documentation;  places I've 
>seen which allow both tend to have slightly different semantics for the 
>two, e.g. in Perl double quoted strings can have substitutions in them and 
>single quoted strings are verbatim.

Also true in PHP as far as I know.
Since the Cactus parameter parser is only for generating key-value pairs,
we don't need substitutions at all. If some substitutions are necessary,
the thorn should parse the string itself.

>It may be simpler for people to understand if we just say use double 
>quotes, quote double quotes and backslashes, rather than allowing both 
>single and double quotes.  As Erik said in his reply, it would be good to 
>stick to a well established system, so I'd tend to go for a C-like one 
>with double quotes.
I will go for it if it will be strictly checked in Cactus. 

Cheers,
Jian






More information about the Developers mailing list