Re: type hinting
| From: | Lukas Kahwe Smith | Date: | Wed, 06 Feb 2008 16:13:44 +0000 |
| Subject: | Re: type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35259@lists.php.net to get a copy of this message | ||
Hi All,
Just a suggestion. Maybe make your case analyzing a set of representative php applications for calls to the various is*() methods (maybe even factoring in assert()). This could help in showing how often people are currently forced to write out type checks.
My humble guess:
isset() comes out on top
followed by is_array()/is_object()/is_ressource()
and then nothing for a long time ..
regards,
Lukas