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

Make Maybe.none singleton #54

Open
Lonli-Lokli opened this issue Nov 25, 2022 · 3 comments
Open

Make Maybe.none singleton #54

Lonli-Lokli opened this issue Nov 25, 2022 · 3 comments

Comments

@Lonli-Lokli
Copy link
Contributor

I think it will be useful to have none from maybe singleton, to allow direct comparison two values - and because obviously different nones should be equal.
It might be a breaking change, of course .

@JSMonk
Copy link
Owner

JSMonk commented Apr 2, 2023

Done

@Lonli-Lokli
Copy link
Contributor Author

I mean make it non function but constant as well

@JSMonk
Copy link
Owner

JSMonk commented Jul 16, 2023

I think having a function for one value and a field for another is not a good idea. The API in this case will be slightly inconsistent. But, I'm open to discussing it, why do you think it would be better to have the none field?

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

No branches or pull requests

2 participants