On 07/05/2012 08:18 PM, Graydon Hoare wrote:
> The string-specific reasons I can see for this are:
> 
>   - You want to denote some utf8 bytes and you want to avoid doing
>     the work of figuring out which codepoint it decodes to. For
>     example if you were writing a crude tool that emitted rust string
>     literals by doing byte-at-a-time copies of text files.

Since Rust source files are UTF-8, a crude tool could simple copy these
bytes into the output as is, without having to encode them at all. As I
understand it.

>   - You want to copy a string literal from C or C++.

That wouldn't generally work anyway, since there are other C-style escape
sequences that Rust doesn't support, such as \a\f\v for alert/form
feed/vertical tab. In fact, reading through the tutorial I was pleasantly
surprised by the minimalism and clarity of Rust's escape
sequences--sufficiently similar to C but without the outdated and illogical
stuff.

So I don't really see those reasons. Otherwise I have already stated by
preferences.

Best regards
        Christian

-- 
|------- Dr. Christian Siefkes ------- [email protected] -------
| Homepage: http://www.siefkes.net/ | Blog: http://www.keimform.de/
|    Peer Production Everywhere:       http://peerconomy.org/wiki/
|---------------------------------- OpenPGP Key ID: 0x346452D8 --
          .-.
          /v\    L   I   N   U   X
         // \\  >Phear the Penguin<
        /(   )\
         ^^-^^

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to