Check out the thread after the set classed was checked
was included as a standard library [ruby-core:423] -
in particular [ruby-core:423]. I tend to think that is
a toss up up between the current efficient Set#eql?
implementation (actually I wondering why Set#eql? and
Set#hash are overridden at all) and the mathematically
correct
class Set
alias :eql? :==
end
implementation (in tandem with appropriated Set#hash).
I have more definite opinion on current Set#<=> semantic,
which was adopted from an earlier Set class in RubyCollections download | SourceForge.net. The latter
strikes me as barely useful maybe even counterproductive.
(Incidentally in Jason’s in Set implementation we have
Set#eql? == Set#==).