RE: [PHP4BETA] A strict equality operator

From: Date: Mon, 26 Jul 1999 15:49:28 +0000
Subject: RE: [PHP4BETA] A strict equality operator
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2786@lists.php.net to get a copy of this message
why arent we using the C and other languages one og == ??? > -----Original Message----- > From: ryan@bucketmouth.northpro.net > [mailto:ryan@bucketmouth.northpro.net] > Sent: Tuesday, 27 July 1999 1:34 > To: Andrey Zmievski > Cc: Stig Bakken; zeev@zend.com; Andi Gutmans; Brian Schaffner; Sascha > Schumann; php4beta@lists.php.net > Subject: Re: [PHP4BETA] A strict equality operator > > > > > 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 > > > -- > PHP 4 Beta >

« previous php.version4 (#2786) next »