> It'd be nice if, when doing $objA > $objB, that that'd invoke
>> $objA->__compareTo($objB) or something, much like Java's Comparable
>> interface.
>>
>
> There is nothing stopping you from creating this in user-land. Also, I
> have spent a lot of time writing libraries in PHP and I now believe that
> this approach is not the best solution anyway.
>

Except for the magic that happens on the comparison, I mean.  I really
don't think PHP should go down that road at this point, if ever.

Reply via email to