#36165 [WFx]: "==" considered harmful
ID: 36165
User updated by: scratch65536 at att dot net
Reported By: scratch65536 at att dot net
Status: Wont fix
Bug Type: Feature/Change Request
Operating System: W2K, but irrelevant
PHP Version: 4.4.2
New Comment:
I can recall Maurice Wilkes sending an auditorium filled with engineers
into gales of laughter by pointing out that "The really nice thing about
standards is that they ensure that everyone who comes after us makes the
same mistakes we did".
Previous Comments:
------------------------------------------------------------------------
[2006-01-26 14:28:56] tony2001@php.net
This is not going to happen.
------------------------------------------------------------------------
[2006-01-26 14:23:41] scratch65536 at att dot net
Description:
------------
To prevent "if ( $a = 2 )"-type errors, an EQ comparison operator would
be very helpful. (If I had the cost of all the time lost, worldwide, on
that class of error, I'd be living in a villa on the Riviera.)
Although the EQ op is the only one actually needed, for symmetry's sake
it would be pleasant to have the rest, too: NE,LT,LE,GE,GT).
Reproduce code:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36165&edit=1
Thread (3 messages)