-
Notifications
You must be signed in to change notification settings - Fork 61
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
Either constructors from bool
#88
Comments
bool
and Option
bool
and Option
bool
You removed
I think this applies to |
I did remove My rationale for treating I have been informed that Haskell (for example) generally treats Right as truthy as well. |
"as well"? Doesn't that contradict the The derived But I think truthiness is still a kind of preference that we're trying to avoid. Haskell is more opinionated:
|
Meant "as well" as in adding to what you said. I understand why you might not want to add this to this crate. I think I will try creating a crate of my own implementing them, as it would be also a learning experience for me. Thanks for the comments. |
Got it. Okay, I think we can leave it to your crate to offer a more opinionated stance. :) |
Hello.
I am curious if this was discussed or considered before. I searched the issues and PRs (for "bool") and found nothing similar.
Basically something like this:
which allows nice one liner constructors like this :
instead of
Similarly for Options
The text was updated successfully, but these errors were encountered: