You aren't making it a strict static typed language. All that you are doing
is saying that at certain points (function entry) that the values are checked
and converted to certain types. If within the fuction an argument hinted as
integer is used in a string context, the juggling will still happen.

So it's basically another way to say (string)? Again, that's not what was said by other people discussing it. But all that just to save one (string) inside function?

What you are doing to allowing the function author to protect the integrity
of his code without having to resort to a regex/... to check what the arguments 
are.

If you need regex, you'd still have to use regex. Type juggling can do only so much.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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

Reply via email to