-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Leibniz equality #1177
Comments
I think both |
I'm a little curious about Lizkov and the subtyping parameters around Leibniz. Also, any thoughts on |
I've found these to be useful, 👍 As for naming, I would prefer |
I suppose I'm not sure how that particular bikeshed is painted in Cats. |
I'll turn this into a PR to make the discussion a bit more concrete. |
@non, to be clear, I think this is a valuable shed to paint in a project like this and I definitely defer to those familiar with the style and spirit of the project! |
Added in #1178. |
This might fall a bit outside the standard "only the things you need" toolkit, but having a notion of Leibniz equality makes handling type equalities much easier and is useful for some pure functional idioms. Scalaz's implementation is more powerful to account for subtyping, but a simpler version might be the following
I also propose calling it something less scary than "Leibniz equality", so
Teq
seems reasonable.The text was updated successfully, but these errors were encountered: