Re: [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters
| From: | Anthony Ferrara | Date: | Fri, 09 Mar 2012 13:45:03 +0000 |
| Subject: | Re: [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58819@lists.php.net to get a copy of this message | ||
John,
> And yet, __toBool probably sits right next to __toArray in terms of the level of usefulness
> (maybe even beats it.) isset() can always be used to determine whether something was ACTUALLY set to
> a non-null value, and to some extent there is already a semantic problem anyway since things like
> if("0") resolve to false.
The original proposal was to include toBool functionality. Stas was
one who strongly opposed it which is one of the reasons that I removed
it.
However, if a convincing case can be made to add it in, and there's
enough buy in, I would love to see it added. My issue is that I don't
want the whole proposal rejected because of that one method... But
that's what a RFC process is for, so let's get discussing...
Thanks,
Anthony