<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, 2016 at 3:01 PM, Thomas Mäder <span dir="ltr"><<a href="mailto:tmader@redhat.com" target="_blank">tmader@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 09/22/2016 05:35 PM, Andrew Lee Rubinger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<br>
</blockquote>
<br></span>
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"</blockquote><div><br></div><div>So then the instance of this object compares two things you've provided to it as parameters.  Which to me isn't really an instance method at all because it has nothing to do with the state of the instance being invoked. :)</div><div><br></div><div>S,</div><div>ALR</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
<br>
/Thomas<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Red Hat Developer Programs Architecture<div>@ALRubinger</div></div></div>
</div></div>