News for hackers. Stuff that matters.
Re:A History of Clojure [pdf] by dropofwill on Saturday June 06, 2020 @11:12AM (#23439711)
In Java you can (and should) implement equality semantics however you want for Objects by implementing equals/hashCode. If you just want value semantics you can use a record type, which works just like the Clojure example.
Re:A History of Clojure [pdf] by wtetzner on Wednesday June 10, 2020 @01:28PM (#23479708)
I think the point is that in Clojure you get value semantics out of the box, but in Java you have to put in extra effort to get it.