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

Returning None or throwing an exception when no result found? #8

Open
aeporreca opened this issue Dec 5, 2024 · 0 comments
Open

Returning None or throwing an exception when no result found? #8

aeporreca opened this issue Dec 5, 2024 · 0 comments
Labels
question Further information is requested

Comments

@aeporreca
Copy link
Owner

aeporreca commented Dec 5, 2024

Should a non-bool-valued @nondeterministic function return None when no result is found, or should it throw an exception (ValueError?), which is (possibly) more Pythonic?

@aeporreca aeporreca added the question Further information is requested label Dec 5, 2024
@aeporreca aeporreca changed the title Returning None when no result found? Returning None or throwing an exception when no result found? Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant