Re: [PHP4BETA] propose for bool -> string conversion:
| From: | bourbon at netvision dot net dot il | Date: | Fri, 02 Jul 1999 13:16:53 +0000 |
| Subject: | Re: [PHP4BETA] propose for bool -> string conversion: | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1797@lists.php.net to get a copy of this message | ||
On Fri, 2 Jul 1999, Sascha Schumann wrote:
> > Why does it matter?
>
> Semantics change is a no-no, if avoidable.
Semantically nothing changed, both "0" and "" are false. I don't feel
strongly about this, but basically, anybody relying on false being "" and
not "0" or 0, is writing bogus code.
Zeev
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il