Re: [PHP4BETA] A strict equality operator
| From: | Teodor Cimpoesu | Date: | Mon, 26 Jul 1999 16:27:57 +0000 |
| Subject: | Re: [PHP4BETA] A strict equality operator | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2758@lists.php.net to get a copy of this message | ||
Stig Bakken wrote:
>
> On Mon, 26 Jul 1999, Zeev Suraski wrote:
>
> > At 00:07 26/07/99 , Ariel wrote:
> > >It's not any harder to remember then === or harder to understand, but a
> > >lot better from a debugging point of view since you're much less likely to
> > >confuse it with == (=$ might be better). I'm not hooked on the symbol, I
> > >just don't like === there are already a lot of people who think == and =
> > >were a mistake for c, and that they should have done = and := instead, so
> > >why make it worse (ok so == works well with && vs & and || vs |, but it
> > >still causes a lot of mistakes for programmers). How about x= it stands
> > >for exactly equal.
> >
> > Perhaps something along the lines of =?=, ? being some good character to
> > fit in there.
> > =~=
> > =x= (seems to suggest an X over the equality, which appears
> > not-equal)
> > =:=
>
> I like "=x=" best, it's faster to type. :-)
>
> - Stig
>
> --
> PHP 4 Beta
how about (taking x= as a good start) x==.
Usually in C op= is an assingment,preceded by and operation.
If == is equality test, x== would be intuitive to know it's e(x)act
match.
[ wow, almost 50 e.mails on this topic, why don't you guys just vote for
each proposal ? :) ]
--
CIMPOESU Teodor, Web Programmer
@ DIGICOM S.A. Bucharest, Romania
@ Internet, site development
@ teo@digiro.net,+(401)-330.47.28
official home page ~ http://www.digiro.net/
Internet web page ~ http://internet.digiro.net/