program-in-chinese / overview

中文编程的历史、现状和展望。issue 中进行相关问题的讨论.
https://zhuanlan.zhihu.com/codeInChinese
GNU General Public License v3.0
383 stars 34 forks source link

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

Open 4b5ent1 opened 5 years ago

4b5ent1 commented 5 years ago

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

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

patch 2018.1107: windows DLL:https://github.com/program-in-chinese/overview/issues/74

nobodxbodon commented 5 years ago

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

4b5ent1 commented 5 years ago

hide

cflw commented 5 years ago

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

nobodxbodon commented 5 years ago

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

s20208413 commented 3 years ago

dart 不支持 unicede 标识符

https://github.com/dart-lang/sdk/issues/2608

s20208413 commented 3 years ago

另, rust 已经支持 unicode 标识符

https://github.com/rust-lang/rust/issues/55467

s20208413 commented 3 years ago

dart 不支持 unicede 标识符

dart-lang/sdk#2608

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

s20208413 commented 3 years ago

GraphQL 不支持 unicode 标识符

https://github.com/graphql/graphql-spec/issues/256

nobodxbodon commented 3 years ago

群成员指出 gdscript

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

貌似已有进展:https://github.com/godotengine/godot-proposals/issues/916

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

s20208413 commented 2 years ago

BUG: dart 不支持 Unicode 标识符

https://github.com/program-in-chinese/team_website/blob/master/_posts/2017-10-23-%E5%9C%A8%E5%90%84%E7%A7%8D%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80%E4%B8%AD%E4%BD%BF%E7%94%A8%E4%B8%AD%E6%96%87%E5%91%BD%E5%90%8D.markdown 这里写了 Dart, 是个错误, 应该去掉.

nobodxbodon commented 2 years ago

@sceext2 多谢,已更新:https://github.com/program-in-chinese/team_website/commit/8d3aa424908f1e3e0b3b8be9ec646ceca3df41f3#diff-d8ff08c5d8970f4072e33dc6b4d2c2e9d3ebd2a1f0e8bfc039091bde0b73715b

nobodxbodon commented 2 years ago

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

xgongya commented 2 years ago

您好,您的邮件已收到,会尽快处理回复您!

muzimuzhi commented 2 years ago

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

xgongya commented 2 years ago

您好,您的邮件已收到,会尽快处理回复您!