Skip to content
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

What about named identifiers in local language? #1776

Closed
3442853561 opened this issue Oct 24, 2016 · 3 comments
Closed

What about named identifiers in local language? #1776

3442853561 opened this issue Oct 24, 2016 · 3 comments
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.

Comments

@3442853561
Copy link

3442853561 commented Oct 24, 2016

What about named identifiers in local language?
Example

fn main() {
    let 一个数字:i32=5;
    print!("{}",一个数字);
}

In this program 一个数字 is a identifier. It can help the Asians, like me, understand the progarm easyer.

@8573
Copy link

8573 commented Oct 24, 2016

@3442853561: The nightly version of rustc supports non-ASCII identifiers such as 一个数字, with the feature flag non_ascii_idents (example). However, rust-lang/rust#28979 would seem to imply that there are some bugs in rustc's support for non-ASCII identifiers.

@SimonSapin
Copy link
Contributor

As discussed in rust-lang/rust#28979, this requires a feature flag not because it’s particularly buggy but because we need to decide exactly what sequences of Unicode code points should be identifiers or not. 一个数字 obviously should, but Unicode is full of less obvious cases.

@3442853561 I suggest closing this issue to keep the discussion in one place until a proper RFC is written. You can comment on rust-lang/rust#28979 to express interest there, or just click the "Subscribe" button to just be notified of new messages.

@steveklabnik
Copy link
Member

Yes, please use the tracking issue. Thanks!

@Centril Centril added the T-lang Relevant to the language team, which will review and decide on the RFC. label Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

5 participants