On 04.07.2009, at 14:27, Derick Rethans <der...@php.net> wrote:
So I would propose to:
1. have ilia's strict typing patch (minus scalar and numeric)
2. have a patch that also adds for casting type hints from your RFC.
Those could (and should) be considered as *two* new features.
As for syntax, I believe the following would be best:
function add_user(string $name, string $phone_number, (int) $age)
{ .. }
because:
1. the casting type hint "(int) $var" is used for normal casting
already
2. the strict type hint "int $var" is already used for class names
+1
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php