Re: Return type hints
| From: | Arvids Godjuks | Date: | Tue, 08 Apr 2008 09:02:40 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36862@lists.php.net to get a copy of this message | ||
I think type hint's would be good optional functionality. Those who need
will use it, others will not. I'd probably use it in some cases. Especially
if named parameters are implemented.
Sometimes what I really want is named parameter pass like
function myfunc(array $array, string $string = null, int $someint = 0){
}
myfunc($myArray, someint = $mySomeInt);