-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Multiple underscores are allowed in names for methods #4054
Labels
Comments
ponylang-main
added
the
discuss during sync
Should be discussed during an upcoming sync
label
Mar 14, 2022
Tests should be added for anything that was incorrectly removed so they can be removed again in the future. |
SeanTAllen
added
help wanted
Extra attention is needed
bug
Something isn't working
good first issue
Good for newcomers
and removed
discuss during sync
Should be discussed during an upcoming sync
labels
Mar 15, 2022
SeanTAllen
changed the title
Multiple underscores are allowed as new/fun/be arguments
Multiple underscores are allowed in names for methods
Mar 15, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the Naming Rules in the tutorial:
I understand this as: multiple consecutive underscores are not allowed (and some other rules). However, it seems to be allowed for parameters (arguments), as the following compiles (and runs) happily:
Link to playground: https://playground.ponylang.io/?gist=327bddd28fbe66b24d58c681a93d60f2
There are two issues:
___'
), the syntax highlighting breaks on the playground (though I guess this isn't an issue per se, as it only occurs because issue1 exists)Cheers!
The text was updated successfully, but these errors were encountered: