Re: weak and strict type checking RFC

From: Date: Sat, 04 Jul 2009 17:45:27 +0000
Subject: Re: weak and strict type checking RFC
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-44701@lists.php.net to get a copy of this message
On 04.07.2009, at 14:27, Derick Rethans <derick@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

« previous php.internals (#44701) next »