Simon Cozens <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Dave Whipp) writes:
>> There is a difference between verbs and noun. Sometimes you don't want
>> to associate a verb with an object: you want to associate it with the
>> subject:
>
> Verbs are almost always associated with their subject in OO languages,
> so I don't see where you're coming from.
>
>> "the cat sat on the mat"
>> is that
>>   the_mat.sat_on(the_cat)
>
> Nope.
>
>> or
>>   the_cat.sat_on(the_mat)
>
> This one. If you called
>    $cat->sit_on($mat);
> in Perl 5, who would you expect to be sitting on what?

C<< $cat.sat_on($the_mat) >> is surely a predicate, returning true or false
depending on whether the cat is on the mat or not. But unless I can
write it as C<< $cat.sat_on?($the_mat) >> then I'd be very cross with
anyone who didn't call the method C<< is_sat_on >>.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to