Hi --

On Mon, 25 Nov 2002, Nikodemus Siivola wrote:

>
> On Mon, 25 Nov 2002, Gavin Sinclair wrote:
>
> > PS. I don't know what this means for the FAQ.  A bit of discussion, I
> > suppose.
>
> The fact that there are several divergent views seems to point in the
> diretion of a non-authoritative entry: "This is is a disputed issue.
> [Explanation of main approaches and their pros and cons.]"

To the extent that the discussion has revolved around the practice of
explicity testing for type in Ruby, I think it's misleading to file it
under a FAQ about implementing <=>, since it's a much broader matter.
I'm actually not in favor of having "kind_of?" branching recommended
in the FAQ at all, both for the reasons Dave has mentioned and because
I think it tends to stop one from thinking further, and in ways that
take better advantage of Ruby, about one's design.  But in any case it
isn't a <=>-specific practice.


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav