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

The UTF-8 character is very good,so you can name your variable using your mother tongue! #62

Open
xxhls opened this issue Sep 22, 2023 · 3 comments

Comments

@xxhls
Copy link

xxhls commented Sep 22, 2023

Good

String 你好 = "你好";
System.out.println(你好);

Bad

String hello = "你好";
System.out.println(hello);
@flyico
Copy link

flyico commented Sep 22, 2023

And with emoji it will be better!

NSString* 😡 = @"😀";
NSLog(😡);

@xxhls
Copy link
Author

xxhls commented Sep 22, 2023

And with emoji it will be better!

NSString* 😡 = @"😀"; NSLog(😡);

Good!!!!

@Junzh666
Copy link

Junzh666 commented Jan 18, 2024

String 触斯 = "假";
System.out.println(触斯);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants