Ford, Mike wrote:

    function func(int $i)

for strict type checking, and

    function func((int)$i)

for coercion aka casting (although now I've seen it written down I'm not
so sure! ;).

I had thought about having "weak" and "strong' type checking even before Paul sent his proposal, but I rejected the idea myself for the confusion it might cause because I couln't think of a good syntax. This one actually looks pretty good, it's intuitive and consistent with what the language offers now.

Big +1

regards
Rodrigo Saboya

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

Reply via email to