Greedy triple-quoted string literals

Dominic Cooney dominic.cooney at gmail.com
Mon Feb 18 01:56:20 PST 2008


There's a note on the triple-quoted string literals proposal*:

"we decided that triple-quoted strings would be greedy when looking
for the closing triple-quotes."

Wouldn't this mean, in practice, that it is only possible to have two
triple-quoted string literals per source file (one with """ and
another with ''')?

* http://wiki.ecmascript.org/doku.php?id=proposals:triple_quotes



More information about the Es4-discuss mailing list