-
Notifications
You must be signed in to change notification settings - Fork 38
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
Allow providing a default to optional() #65
Comments
unode
added a commit
to unode/parsy
that referenced
this issue
Sep 6, 2022
Yep, that sounds like a good improvement. |
unode
added a commit
to unode/parsy
that referenced
this issue
Sep 6, 2022
PR done in #66 |
unode
added a commit
to unode/parsy
that referenced
this issue
Sep 6, 2022
unode
added a commit
to unode/parsy
that referenced
this issue
Sep 6, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be convenient to have
optional(default_value)
which would returndefault_value
instead ofNone
.This can be seen as complementary to
result(default_value)
that always return a fixed value.The text was updated successfully, but these errors were encountered: