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

Case pattern syntax improvement #316

Closed
porglezomp opened this issue Feb 4, 2020 · 2 comments
Closed

Case pattern syntax improvement #316

porglezomp opened this issue Feb 4, 2020 · 2 comments
Milestone

Comments

@porglezomp
Copy link

While I was working with cases I tried using underscores in my patterns as byte separators, expecting it to match the integer literal syntax, but it was rejected.

I'd like to be able to write patterns like "0001_0---"—does this seem like a good idea, or is the potential confusion between - and _ a problem?

@whitequark
Copy link
Member

I think the potential confusion is a problem. Since we don't need it to be a single lexical token (like Python does), what about just using spaces?

@porglezomp
Copy link
Author

I would also be happy with spaces as the separator.

@whitequark whitequark modified the milestones: 0.3, 0.2 Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants