Re: Re: Minor engine patch to facilitate PECL/operator

From: Date: Fri, 17 Feb 2006 09:55:44 +0000
Subject: Re: Re: Minor engine patch to facilitate PECL/operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-21899@lists.php.net to get a copy of this message
On 16/02/06, Zeev Suraski <zeev@zend.com> wrote: > In languages where operator overloading is supported, it comes hand > in hand with strict typing, which wouldn't allow for different values > for x>y and y<x... > > Zeev That's not true, Ruby for example has operator overloading, and has no problems with different meanings of x>y and y<x (but i don't know a core class that does that). Also, PHP already breaks the transitivity rule for the equality operator ($a == $b and $b == $c does not imply $a == $c), so there's not much new evil if a user can, by loading an extension, break the symmetry of the comparison operators, IMO. Regards, Stefan Walk

« previous php.internals (#21899) next »