-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Richard Lynch wrote:
> On Thu, May 11, 2006 2:30 pm, Jasper Bryant-Greene wrote:
>> From a pure computer science point of view, the above makes complete
>> sense. Null means unknown value, so nothing is equal to it, not even
>> another null (because you don't know if the other null's *unknown*
>> value
>> is equal to this null's *unknown* value). is_null() would make more
>> sense here.
> 
> With all due respect to the Mathematical theory behind that, it's just
> asinine in a programming language I have to use every day.
> 
> Sorry.

To be honest, I'd rather be able to compare nulls using equality in PHP
too. That kind of thing is exactly why I like PHP. I was just pointing
out the (probable) reasons behind the change - it's exactly the same as
having to use 'a IS NULL' instead of 'a = NULL' in MySQL etc.

Jasper
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFEY6iNFfAeHhDzT4gRA0ArAKCRzAtRqfuscf4Y5B4KTOvCFg6HxwCg8LdJ
qxquURkKi8dIWgQvCm+LwP0=
=UeTH
-----END PGP SIGNATURE-----

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to