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

Allow collections of collections #101

Open
Calvin-L opened this issue Dec 28, 2018 · 0 comments
Open

Allow collections of collections #101

Calvin-L opened this issue Dec 28, 2018 · 0 comments

Comments

@Calvin-L
Copy link
Collaborator

Cozy does not allow collections containing collections, such as Set<Set<Int>>; It will never generate such a type during synthesis and it complains loudly if such a type exists in a specification. There is no need for this restriction and we should lift it.

This enhancement blocks #100, and must be addressed before we can implement a proper fix.

There are two possible ways to fix this problem:

  • rewrite specifications that contain collections-of-collections into specifications that do not contain them (leaving synthesis unchanged) OR
  • allow collections-of-collections everywhere, including during synthesis.

I personally favor the first option since banning collections-of-collections helps prune the search space a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant