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

暂不支持unicode identifier的编程语言/环境 汇总 #102

Open
4b5ent1 opened this issue Nov 4, 2018 · 15 comments
Open

暂不支持unicode identifier的编程语言/环境 汇总 #102

4b5ent1 opened this issue Nov 4, 2018 · 15 comments
Labels
index 索引,汇总,集合
Milestone

Comments

@4b5ent1
Copy link
Member

4b5ent1 commented Nov 4, 2018

虽然绝大多数较流行的编程语言已支持Unicode命名(详见在各种编程语言中使用中文命名), 仍有少数还未支持. 汇总如下.

截至2018年11月3日
rustrust-lang/rust#55467 已支持,见此楼
haxe:https://haxe.org/blog/unicode/

patch 2018.1107:
windows DLL:#74

@4b5ent1 4b5ent1 added this to the 2018戊戌 milestone Nov 5, 2018
@nobodxbodon
Copy link
Member

在顶楼补了一句说明"虽然绝大多数较流行的编程语言已支持Unicode命名...". 各位如对此有兴趣请多关注相关issue进展并更新顶楼.

@4b5ent1 4b5ent1 removed the 中文化 label Nov 22, 2018
@4b5ent1 4b5ent1 added the index 索引,汇总,集合 label Nov 30, 2018
@4b5ent1
Copy link
Member Author

4b5ent1 commented Dec 8, 2018

hide

@4b5ent1 4b5ent1 closed this as completed Dec 8, 2018
@cflw
Copy link
Member

cflw commented Apr 28, 2019

p4语言:https://p4.org https://github.com/p4lang
其编译器用c++写的,编译器中使用的字符类型是char,应该不支持统一码标识符。
未测试。

@nobodxbodon
Copy link
Member

一些语言中虽然多数情况下支持中文标识符,但有例外情况:

@nobodxbodon nobodxbodon reopened this Aug 6, 2021
@s20208413
Copy link

dart 不支持 unicede 标识符

dart-lang/sdk#2608

@s20208413
Copy link

另, rust 已经支持 unicode 标识符

rust-lang/rust#55467

@s20208413
Copy link

dart 不支持 unicede 标识符

dart-lang/sdk#2608

注意, 和 dart 密切相关的 flutter 框架

@s20208413
Copy link

s20208413 commented Aug 7, 2021

GraphQL 不支持 unicode 标识符

graphql/graphql-spec#256

@nobodxbodon
Copy link
Member

nobodxbodon commented Aug 7, 2021

群成员指出 gdscript

godot的脚本gdscript也不支持中文。不过可以通过修改源码支持

貌似已有进展:godotengine/godot-proposals#916

然后想起了 Lua,搜了一下邮件列表看到 2019 年的讨论,看来 Lua 作者仍未打算正式支持:Unicode identifier support in 5.4

@nobodxbodon
Copy link
Member

@nobodxbodon
Copy link
Member

据说即将推出的仓颉语言在第一阶段内测时尚未支持中文命名。

@xgongya
Copy link

xgongya commented Jun 25, 2022 via email

@muzimuzhi
Copy link

Ocaml identifiers 只支持 ascii ([_a-zA-Z0-9'])

@xgongya
Copy link

xgongya commented Aug 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
index 索引,汇总,集合
Projects
None yet
Development

No branches or pull requests

6 participants