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

Can't reuse record or variant names #577

Open
ChrisJefferson opened this issue Jun 26, 2023 · 0 comments
Open

Can't reuse record or variant names #577

ChrisJefferson opened this issue Jun 26, 2023 · 0 comments

Comments

@ChrisJefferson
Copy link
Collaborator

This is similar (but not the same) as #551 . I don't I've submitted this before.

I've been using variants to represent optional givens, for example:

given neighbourhood_CLUES : variant {
    None, Some_CLUES : record { Min: int, Max: int, Val_CLUES: int }
}

given neighbourhood_GRID : variant {
    None, Some_GRID : record { Min: int, Max: int, Val_GRID: matrix indexed by [int, int] of int }
}

I would prefer to use just Some and Val, but then I'm told I can't reuse the name. I don't know how easy it would be to let names be reused, but I thought I'd mention the irritation.

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