On 5/7/06, Pistos Christou <jesusrubsyou.5.pistos / geoshell.com> wrote:
> > Perhaps another thing to consider is on a more logical level.  If the
> > method is not something that *any string* should be able to do, you've
> > probably put it into the wrong class.
>
> Well, if I'm interested if a string is #vogon? or not, I can't see why I
> would try to segregate strings into two groups.

I agree.  I think it is a reasonable expectation for a string to tell
you if it is_vogon?  Let's say you wanted to inflect a word based on
vogon grammar rules.  That would be a method that only vogon words
should respond to, so at that point I think you'd want a subclass.

It all depends on your intentions and on your design decisions.



--
Lou