in java, because this is a pain to do it each time.
for us, maybe for the same��� even if is a lot easier.
Yeah, and it is boring to implement that every time, especially because it is tricky to get it right sometimes. Another interesting thing I use in Java to test my equals and hash implementation is the http://jqno.nl/equalsverifier/
I just use RBGenerateEqualHashRefactoring for this:
Oh! That is nice, I will give a deeper look at it, I think this may do the job. Thanks!
Publish it in a package and let us have a look.On Mon, Oct 2, 2017 at 9:53 AM, Jose San Leandro <jose.sanleandro@osoco.es> wrote:Hi,I wrote a generator for that. Probably it makes no sense to publish it as a standalone project. I tend to think code generation fits better in other languages.I can paste the relevant code here if needed.2017-10-02 9:44 GMT+02:00 Esteban Lorenzano <estebanlm@gmail.com>:in java, because this is a pain to do it each time.��for us, maybe for the same��� even if is a lot easier.EstebanOn 2 Oct 2017, at 09:42, Stephane Ducasse <stepharo.self@gmail.com> wrote:Not that I know.��Because it can be a little project.Now what is the key point to encapsulate this computation?On Mon, Oct 2, 2017 at 12:51 AM, Vitor Medina Cruz <vitormcruz@gmail.com> wrote:Hello!
Is there, in Pharo, builders for equals (=) and hash messages similar to: https://commons.apache.org/proper/commons-lang/javadocs/api- release/org/apache/commons/lan g3/builder/EqualsBuilder.html andThanks in advance,Vitor