On Sat, Sep 21, 2013 at 4:52 PM, Carl Eastlund <c...@ccs.neu.edu> wrote:

> You always have to have some exceptional case, though, don't you?  What if
> you have a string literal that contains every single character?  Or what if
> you have literals in procedurally generated code that might contain any
> unknown character?  There's always a possibility that a given delimiter
> (sequence of) character(s) might be duplicated inside the literal.  Isn't
> there?
>
> Carl Eastlund
>

A shell script's here document or a C++11 raw string literal gives you the
ability to choose the sequence ending the literal. You can always pick an
appropriate end delimiter for a given string.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to