Andi Gutmans wrote:
Look it boils down to the following:

True type enforcement ala === (i.e. you pass "1" to an int and it errors
out) does not make sense for PHP (and yes, philosophy and design goals
of the language are important).
>
> What I suggested in my previous email is type hinting which also does
> the conversion to the request type. This is very much in the PHP
> spirit and also how PHP's internal functions work today. It is
> "consistent".

I agree (and did last time) with Andi about this. I am all for using a == instead of === for type hinting scalars. This will mean any scalar will pass as a string, but arrays and objects will not.

--

Brian Moon
Senior Developer
------------------------------
When you care enough to spend the very least.
http://dealnews.com/

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

Reply via email to