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

Add [Either,Option].orNull. Closes #86. #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cranst0n
Copy link
Contributor

No description provided.

Copy link
Owner

@spebbe spebbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least for Option, there is already toNullable() which does the exact same thing except for not being a getter. I intentionally "hid" toNullable it a bit :) , since I'm worried that its existence and use might obscure the purpose of Option (and Either). I'm open to going either way with this though.

Like with the other two PRs, I'm sorry for not replying sooner.

@cranst0n
Copy link
Contributor Author

cranst0n commented Feb 7, 2022

Okay no worries. I don't have a strong opinion on this one. I noticed an open issue and went for it.

I personally don't see a huge downside to their existence since the type captures the intent but I also appreciate the other side of the coin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants