We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following proposal for a slightly API change. The expression:
thing = Optional.of(some_func_may_return_none()).get_or_default('23')
could be written in a shorter way like
thing = Optional(some_func_may_return_none()).get('23')
Another idea is, to rename the class to Opt to prevent confusion with the builtin type Optional. So the final expression would be (by default):
Opt
Optional
from optional import Opt thing = Opt(some_func_may_return_none()).get('23')
The text was updated successfully, but these errors were encountered:
I've integrated this here: https://github.com/mreiche/python-streams
Sorry, something went wrong.
No branches or pull requests
I have the following proposal for a slightly API change.
The expression:
could be written in a shorter way like
Another idea is, to rename the class to
Opt
to prevent confusion with the builtin typeOptional
. So the final expression would be (by default):The text was updated successfully, but these errors were encountered: