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

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

Reply via email to