Re: [PHP4BETA] A strict equality operator
| From: | Jeffrey Galbraith | Date: | Sun, 25 Jul 1999 20:32:47 +0000 |
| Subject: | Re: [PHP4BETA] A strict equality operator | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2722@lists.php.net to get a copy of this message | ||
I've seen to many problems with the triple equality operator in the past.
How about := (colon equal)? This makes it more explicit and easier to
interpret. For instance, looking at another developer's code, sometime you
have to wonder if they meant to add === as opposed to ==. The := makes it
easier to decipher.
Jeff
----- Original Message -----
From: Andi Gutmans <andi@zend.com>
To: <php4beta@lists.php.net>
Sent: Sunday, July 25, 1999 1:55 PM
Subject: [PHP4BETA] A strict equality operator
> Hi.
>
> Zeev and I want to add a strict equality operator that will not do any
type
> conversion and will only be true if both the type of the arguments and
> their values are identical.
> Does anyone see any problems with this?
> We thought of using === as the operator. Comments?
>
> Andi
>
> ---
> Andi Gutmans <andi@zend.com>
> http://www.zend.com/
>
> --
> PHP 4 Beta
>
>
>