Can you please show through some realistic FP example what you do with an Eq<Point>? Possibly showing what you do with it that you cannot do with a plain Point?
I understand that this equals method allows comparison of points, but I could implement it inside type Point and get on with it.
Why is it useful to have an Eq<Point>? Thank you for your attention....
Because you can compose equality checks. It means, minimal code without boilerplate with correctness via type checking. Here is a realistic example: twitter.com/estejs/status/11914907...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you please show through some realistic FP example what you do with an Eq<Point>? Possibly showing what you do with it that you cannot do with a plain Point?
I understand that this equals method allows comparison of points, but I could implement it inside type Point and get on with it.
Why is it useful to have an Eq<Point>? Thank you for your attention....
Because you can compose equality checks. It means, minimal code without boilerplate with correctness via type checking. Here is a realistic example: twitter.com/estejs/status/11914907...