On 2013-09-20, at 10:26 , Marijn Haverbeke wrote:
>>> If I need to embed both ''' and """ in a string, I'm out of luck.
>> 
>> The chance of that is as remote as can be. I've never seen or heard of
>> it happen. And mind, the issue must happen *in a rawstring* which is
>> even more unlikely.
> 
> You should note that, as soon as you include something in the language
> itself, that creates meaningful strings (programs in the language)
> that include the token, which are not likely, at some point, to need
> to be written as a multiline string in the language itself.

It's already noted, my objections are very much that this is highly
unlikely to be an issue as it only comes to a head when needing
*triple-quoted rawstrings* to include *their own* delimiters
(meaning a triple-quoted rawstring which needs to include both
triple-quoted delimiters at the same time).

Even unlikelier given python will concatenate string literals during
parsing.

On 2013-09-20, at 10:25 , Kevin Ballard wrote:
> Regular expressions is really the most common application here.

Right, which was just about all I was saying in the original message.

> People still use literal path separators in strings all the time in languages 
> that support path-building methods.

Something I don't believe should be encouraged.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to