-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow underscore _ at end of identifiers #4327
Comments
A separator has nothing to do at the end of an identifier. |
maybe. example: |
They are not uglier than something that I cannot even talk about: "var with underscore (not to be confused with the other var without underscore)". |
Massive downvote from me... This would introduce an ugly special case to the way Nim name resolution works for questionable benefits. More weird special cases => more sources for subtle and hard to find bugs. |
same topic on forum
http://forum.nim-lang.org/t/525
i'd like to have underscores in variable names at least
and with the latest "implicit self" feature ({.this: self.}) it allows to write code similar to this:
https://github.com/urho3d/Urho3D/blob/master/Source/Urho3D/Scene/Node.cpp#L48
with simple "class variable" access via "classVariable_.something"
The text was updated successfully, but these errors were encountered: