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是为了使代码兼容老lua版本吗? #161

Open
nobodxbodon opened this issue Jan 8, 2024 · 1 comment

Comments

@nobodxbodon
Copy link

知乎上听说新版lua里有个开关支持unicode命名了。

Screenshot 2024-01-07 at 10 53 43 PM
@pigpigyyy
Copy link
Member

是为了在不patch Lua源码的环境下能运行Yuescript写的带unicode标识符的代码,毕竟不是所有Lua的运行环境都能patch到源码。也是借鉴一个叫Fennel转译到Lua的语言编译器的处理方式来的。

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

2 participants