-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove \xXX
char escapes from the language
#312
Comments
Using the modern syntax |
I think the original discussion thread is relevant here. In particular, I think the real point is that this RFC is literally talking about char escapes. Yes, its example is then converting its input strings to byte arrays, and yes that is outdated syntax, but we still have support for So we should either remove support for I'm going to write up an RFC for this right now, because it seems like a non-controversial change that would still have backwards-compatibility implications if we do not get it in for 1.0. |
@pnkfelix Ah yes, I'd overlooked the main argument. (Really shouldn't have commented at 4am :D) |
Issue by Valloric
Saturday Mar 08, 2014 at 21:19 GMT
For earlier discussion, see rust-lang/rust#12769
This issue was labelled with: B-RFC in the Rust repository
\xXX
is very misleading in Rust since it actually works exactly like\u00XX
instead of the way it works in C, C++ and other languages. Example:I understand the reasoning behind this (Rust strings are always UTF-8), but then
\xXX
shouldn't exist in the language. It brings nothing but confusion and it's functionality as implemented is the same as\u00XX
.The text was updated successfully, but these errors were encountered: