Skip to content

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

Open
cranst0n wants to merge 1 commit into
spebbe:masterfrom
cranst0n:orNull
Open

Add [Either,Option].orNull. Closes #86.#99
cranst0n wants to merge 1 commit into
spebbe:masterfrom
cranst0n:orNull

Conversation

@cranst0n

Copy link
Copy Markdown
Contributor

No description provided.

@spebbe spebbe left a comment

Copy link
Copy Markdown
Owner

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

cranst0n commented Feb 7, 2022

Copy link
Copy Markdown
Contributor Author

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