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

Weird behavior with quoted symbols #20657

Open
SirOlaf opened this issue Oct 25, 2022 · 0 comments
Open

Weird behavior with quoted symbols #20657

SirOlaf opened this issue Oct 25, 2022 · 0 comments

Comments

@SirOlaf
Copy link
Contributor

SirOlaf commented Oct 25, 2022

What happened?

It's possible to create a symbol with leading underscore by using `_ name` syntax.

For `name _` the underscore simply gets removed which is also kinda odd.

proc `_ testleading` = echo "Leading underscore"
proc `testtrailing _` = echo "Trailing underscore"
testtrailing()

# undeclared identifier
# testleading()

(Can also play around with it here https://play.nim-lang.org/#ix=4e6e)

Nim Version

Tested devel and some random ones from playground

Current Standard Output Logs

No response

Expected Standard Output Logs

No response

Possible Solution

No response

Additional Information

No response

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

1 participant