-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add warnings for functionality that exists but is optional #632
Comments
A more radical but i think interesting approach is to wrap the class of "concrete polytopes", or some of their functionality, into a module |
Adding the function, I would have expected that you see a warning that the function is redefined when loading The second option sounds good, but it will bring problems like: Those types are not available in pure |
in v0.6.4 it worked like that above, without warning about the redefinition. i think that this method looks a bit untidy, though. but i don't like having |
The types can stay in lazysets, i was expecting it to be possible to pull out only the parts inside |
Hm, then I do not understand that proposal (sorry). |
It is only the methods inside |
It is still not clear to me. Either
|
Well you are right, if the module is optional, nothing changes, one still will see the method error. |
Your initial proposal does not print a warning for me as well. We could go that way from my side.
|
I close this in favor of #1446. |
The current behavior for functions which depend on an optional package does not say much:
A possibility is to export the functionality that exists but with a warning that one needs
Polyhedra
for it to work, i mean adding:Then the behavior is the following:
The text was updated successfully, but these errors were encountered: