-
Notifications
You must be signed in to change notification settings - Fork 70
Document in
behaviour
#647
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
Comments
Apparently it's |
I took the freedom of re-naming this issue since this behaviour is intentional and has been extensively discussed. In a nutshell, in Julia the function We should highlight this in the docs, and maybe just add a docstring for |
I feel that we may have gone a long way since those discussions, and I am wondering if we shouldn't use the same trick for 3.2 in interval(3.2) # True, because the interval is a singleton and `3.2 in 3.2` is true
3.2 in interval(7.9, 12.1) # False, because for every x in the interval `3.2 in x` is false
3.2 in interval(0.3, 7.1) # Error, because no conclusion can be drawn In fact, for numbers, |
That does seem fair. In fact I believe that's what is implemented in the PR #698. Only functions like |
In today's call we decide to be strict and consider by default that intervals are numbers but never sets with builtin julia function. In particular, this means Also, the documentation should contain a section on our general philosophy about it, so that we can refer to it in future discussion. |
This should either work or give me an error message telling me that this is not supported for intervals and telling me which special interval function to use instead (which is not discoverable).
The text was updated successfully, but these errors were encountered: