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

Change the constraint factories to be functions #55

Open
arcondello opened this issue Sep 4, 2018 · 0 comments
Open

Change the constraint factories to be functions #55

arcondello opened this issue Sep 4, 2018 · 0 comments

Comments

@arcondello
Copy link
Member

Application
Given the 'usual' ways to generate constraints, the pattern

csp.add_constraint(and_gate(['a', 'b', 'c']))

seems more astonishing than

csp.add_constraint(and_gate, ['a', 'b', 'c'])

One anticipated problem is that this would make the constraint factories behave somewhat differently than csp factories.

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