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

question: scheme-like identifiers #156

Open
nikomatsakis opened this issue Mar 27, 2022 · 0 comments
Open

question: scheme-like identifiers #156

nikomatsakis opened this issue Mar 27, 2022 · 0 comments
Labels
question Further information is requested

Comments

@nikomatsakis
Copy link
Member

nikomatsakis commented Mar 27, 2022

I've been using scheme lately and I have to say that being able to create identifiers that include all kinds of characters is...super fun and liberating? Like unify/vars or my:unification+engine or even just this-is-a-name. Combined with the fact that forcing spaces around binary operators would solve a few parsing problems, I am wondering about allowing variables to include "infix" or "postfix" punctuation. Obviously some characters (:, =, (, ), [, ], maybe a few others) would still be reserved.

I think I would still reserve punctuation at the beginning of an identifier, too, to allow for -x as the equivalent of 0 - x.

@nikomatsakis nikomatsakis added the question Further information is requested label Mar 27, 2022
@nikomatsakis nikomatsakis changed the title quesiton: scheme-like identifiers question: scheme-like identifiers Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant