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

Use aliases for break types #19

Open
stackmystack opened this issue Sep 16, 2024 · 0 comments
Open

Use aliases for break types #19

stackmystack opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stackmystack
Copy link
Collaborator

When writing the Wadler interface, I noticed many calls like:

::Oppen::Token::BreakType::CONSISTENT

We should refactor and use aliases like:

CONSISTENT = ::Oppen::Token::BreakType::CONSISTENT

Should these constants be also exposes simply as Oppen::CONSISTENT ? I think the Oppen vocab is so small, that we can afford doing that, and may be a better solution that could benefit both Wadler and Oppen users.

@stackmystack stackmystack added the enhancement New feature or request label Sep 16, 2024
@stackmystack stackmystack assigned Am1ne77 and unassigned Am1ne77 Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants