Re: [PHP4BETA] A strict equality operator
| From: | Andrey Zmievski | Date: | Mon, 26 Jul 1999 15:28:27 +0000 |
| Subject: | Re: [PHP4BETA] A strict equality operator | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2784@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
> I think we're best off using
> =:=
> or
> =~=
>
> Any non-symmetric operator (e.g. :==) doesn't make sense to me since it
> doesn't suggest equality, but a difference.
>
> I also don't think that our main concern, or even a major concern at all,
> should be the number of keystrokes needed to generate this sequence. You
> get used to anything, plus, the important thing is readability, not the
> amount of time it takes you to type it up, which is negligible in
> comparison. Also, remember that people lived fairly well without this
> operator for a few years now, so it won't be the most popular operator in
> the world anyway.
Then what's wrong with [=]? IMHO, it looks better and conveys better meaning.
-Andrey
* Proximity bug: when the code crashes in front of important visitors. *