Re: Patch-tastic!

From: Date: Wed, 05 Jun 2002 14:39:21 +0000
Subject: Re: Patch-tastic!
Groups: php.dev 
Request: Send a blank email to php-dev+get-84893@lists.php.net to get a copy of this message
> > The latest one changes some operators. > > Nice, but why not overload + for strings to do the concatenation? Doing that would be ambiguous, to say the least. PHP automatically converts operand types with arithmetic + operator. What would you expect the result of the following expressions to be: "1" + "2" 1 + "2" "2" + $a -Andrei http://www.gravitonic.com/ * 2 + 2 = 5 for extremely large values of 2. *

« previous php.dev (#84893) next »