Re: [PHP4BETA] A strict equality operator
| From: | Andrey Zmievski | Date: | Mon, 26 Jul 1999 14:04:49 +0000 |
| Subject: | Re: [PHP4BETA] A strict equality operator | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2764@lists.php.net to get a copy of this message | ||
Brian Schaffner wrote:
> i thought about attaching a "psychological disclaimer" to that suggestion.
> in a perfect world, the current == would be ~ and the exactly equal would
be
> ==
>
> here's another suggestion:
>
> [=]
>
> if ($x [=] $y) ...
>
> it rolls nicely off the hand as well.
>
> of course, i don't know if that falls into the ?= parser category Zeev
> mentioned.
I actually like this one. It's easy to type and you can have [>] [<] [!=]
and so on.
-Andrey
Everything should be made as simple
as possible, but not simpler.
-Albert Einstein