Value type hash code (original) (raw)

David Simms david.simms at oracle.com
Thu Apr 19 08:04:42 UTC 2018


Summary of points raised:

Obviously a similar discussion can be had for "equals()", except this issue doesn't really involve the JVM (as hashCode does).

Clearly being able to declaratively control hash/equals deep vs identity is very powerful...we'll be prototyping looking for further technical issues.

Feel free to call shenanigans if I have something wrong. Agreeing to disagree is also an option, and nothing is set in stone, still prototyping.

Thanks for all the feedback !

/David Simms

[1] https://docs.oracle.com/javase/10/docs/api/java/lang/Object.html#hashCode() [2] https://docs.oracle.com/javase/10/docs/api/java/util/Arrays.html#hashCode(java.lang.Object%5B%5D) [3] https://docs.oracle.com/javase/10/docs/api/java/util/List.html#hashCode()



More information about the valhalla-dev mailing list