Re: type hinting
| From: | Sam Barrow | Date: | Fri, 04 Jan 2008 18:44:30 +0000 |
| Subject: | Re: type hinting | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34458@lists.php.net to get a copy of this message | ||
On Fri, 2008-01-04 at 10:23 -0800, Stanislav Malyshev wrote:
> > * the code gets smaller because not so many typechecks in every function
>
> What do you mean "not so many"? You need one per checked parameter.
>
What's smaller, type checking with parameter type hinting, or manually
using is_int, is_string, etc?