Re: [RFC] Type hints (parameter and return value)
| From: | Felipe Pena | Date: | Fri, 18 Apr 2008 11:52:22 +0000 |
| Subject: | Re: [RFC] Type hints (parameter and return value) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37133@lists.php.net to get a copy of this message | ||
Em Sex, 2008-04-18 às 10:22 +0300, Arvids Godjuks escreveu:
> +1 for strict types.
>
> That way it will be simple:
> * Don't need - then don't use at all
> * You need it - you use it fully.
>
> One thing than left to clearfy - do we allow to hint only part of args
> or do we go the road "if hint args, then hint them all!" (I'm
> personaly for second one - be strict)
No, just use in the arg that you want.
Example:
http://felipe.ath.cx/diff/tests/param_tests/param_type_hint_016.phpt
--
Regards,
Felipe Pena.