*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!



On Mon, Oct 2, 2017 at 10:09 AM, Stephane Ducasse <stepharo.s...@gmail.com>
wrote:

> Publish it in a package and let us have a look.
>
>
> On Mon, Oct 2, 2017 at 9:53 AM, Jose San Leandro <jose.sanlean...@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 <esteba...@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.
>>>
>>> Esteban
>>>
>>>
>>> On 2 Oct 2017, at 09:42, Stephane Ducasse <stepharo.s...@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 <vitormc...@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/lang3/builder/EqualsBuilder.html
>>>>
>>>> and
>>>>
>>>> https://commons.apache.org/proper/commons-lang/javadocs/api-
>>>> release/org/apache/commons/lang3/builder/HashCodeBuilder.html?
>>>>
>>>> Thanks in advance,
>>>> Vitor
>>>>
>>>>
>>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>  Livre
>>>> de vírus. www.avg.com
>>>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
>>>>
>>>>
>>>
>>>
>>>
>>
>

Reply via email to