jason r tibbetts <tibbettj / verdi.iisd.sra.com> writes:

> Daniel Brockman wrote:
>
>>  * foo.kind_of? Foo                    --- perfect
>>  * foo.is_a? Foo                       --- unrubyish due to `is_*?'
>
> What's unrubyish about is_a?

It's customary not to prefix predicates by `is_'.
For instance, it's `empty?', not `is_empty?'; `frozen?',
not `is_frozen?'; `finite?', not `is_finite?', etc.

   foo.a? Foo

On the other hand, that doesn't read very well. :-)

Actually, I guess you could argue that the no-`is_' convention
doesn't apply for parameterized methods.

-- 
Daniel Brockman <daniel / brockman.se>