-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Relax restriction on "let" expression variable names #5231
Comments
I don't really have any expertise here, but here's my take:
|
This is the subject of Unicode Standard Annex #31, which corresponds to We can get less optimal but decent behavior with the Whatever the case, I would recommend leaning on an existing standard rather than attempting to roll our own ad-hoc set of allowed characters. |
This sounds reasonable. For what it’s worth, NSExpression’s format syntax appears to only support ASCII in identifiers, based on the BNF grammar and a cursory glance in a Swift playground. But the |
Currently, we only allow
a-zA-Z0-9
and_
in variable names. This is unnecessarily restrictive and, of course, especially problematic for users of non-Latin alphabets.We can either:
The text was updated successfully, but these errors were encountered: