Re: type hinting

From: Date: Wed, 06 Feb 2008 16:31:20 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-35261@lists.php.net to get a copy of this message
On Feb 6, 2008 5:13 PM, Lukas Kahwe Smith <mls@pooteeweet.org> wrote: > 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 .. is_int, ctype or brutal (int) are legions, next to my guesses list is (float) or is_numeric Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#35261) next »