Re: [PHP4BETA] A strict equality operator

From: Date: Mon, 26 Jul 1999 15:34:26 +0000
Subject: Re: [PHP4BETA] A strict equality operator
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2785@lists.php.net to get a copy of this message
On Mon, 26 Jul 1999, Andrey Zmievski wrote: > 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. * > Zeev, you have a point there. I guess =~= or =:= is fine.. I don't know about [=], though.. Isn't that already taken in perl for something else? I'm not a perl expert, but maybe someone who is can fill us in on that starship thing. ;) Ryan

« previous php.version4 (#2785) next »