Re: Re: [RFC] Comparison and conversion inconsistency - need more info
| From: | Sanford Whiteman | Date: | Sun, 10 Nov 2013 20:02:46 +0000 |
| Subject: | Re: Re: [RFC] Comparison and conversion inconsistency - need more info | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70088@lists.php.net to get a copy of this message | ||
> Anyway, the manual is better to explain explicitly
> TRUE always evaluated as 1 while
> NULL/FALSE is evaluated as 0 or least.
No, FALSE < TRUE is still the most appropriate way to express this.
"Explaining" a strict boolean comparison in terms of integers/bits is
misleading.
-- S.