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

x > y should be a permissible constraint #181

Open
dcorbin opened this issue Apr 16, 2015 · 2 comments
Open

x > y should be a permissible constraint #181

dcorbin opened this issue Apr 16, 2015 · 2 comments

Comments

@dcorbin
Copy link

dcorbin commented Apr 16, 2015

I was a bit surprised that this constraint seems to have no effect.

alpha[width] > 500 !require;

Simply changing it to

alpha[width] >= 500 !require;

and it worked great.

@Inviz
Copy link
Contributor

Inviz commented Apr 17, 2015

The problem is that 500.0000000001 is a valid solution to > 500 constraint. This is just a convention for everybody to always keep that fact in mind. There's some code to generate >= 500 + 1, but it may not be used at the moment.

@dcorbin
Copy link
Author

dcorbin commented Apr 17, 2015

Sure. But I'm looking at ti from a usability perspective. People will expect it. I did. No error was generated, and i wasted a chunk of time. Generating an error would be an improvement, but making it work they way most folks will expect it to has value.

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

2 participants