[almighty] Equaler considered harmful

Thomas Mäder tmader at redhat.com
Thu Sep 22 19:01:30 UTC 2016


On 09/22/2016 05:35 PM, Andrew Lee Rubinger wrote:
> What does the implementation of this look like? Its usage?  Because 
> now to achieve your point 4) we've moved the responsibility of 
> determining equality from the object in question to some external 
> equality-checker.  How does the equality-checker know about the 
> various types it has to support?

You will still need an implementation per object type. For example, if 
you wanted to implement a Set like in Java, you would have to pass in an 
equality implementation to the Set to tell it what to consider "equal"

/Thomas




More information about the almighty-public mailing list