Ruby and Java equality usage


I have posted a quick (reminder like) entry about how equality is
handled by Ruby and Java:

However, I feel I have missed to explain correctly why eql? and ==
are both needed (and I’ve been reading through Ruby books and searched
the ruby mailing list). Maybe somebody can clarify it and give a
better example. I will be happy to update the entry to reflect the
“new” knowledge.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs