Hi! > On the other hand, this RFC proposes a set of type hint casts which > have stricter rules than an explicit cast, and also somewhat stricter > than zend_parse_parameters, meaning that people can safely do > $_GET[‘thing’] and it’ll work, but if a nonsensical value is passed > in, the program will error as it should.
Having one set of rules for explicit casts and one set of rules for implicit casts (all of them) may work. Having more than one set of rules for implicit cast makes no sense to me at all and will only lead to more confusion and frustrated users. Yes, I understand you want to serve more use cases, but you will never serve them all, and IMO consistent approach is much more important than serving 0.01% of cases where converting "1" or object to boolean is really an error. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php