Re: Type hinting

From: Date: Thu, 27 May 2010 11:56:20 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-48513@lists.php.net to get a copy of this message
On Thu, 27 May 2010, Johannes Schlüter wrote: > On Thu, 2010-05-27 at 06:59 -0400, Ilia Alshanetsky wrote: > > As far as your example goes consider a function that expects a boolean, but > > instead gets an int/string/float, which in nearly all cases will result in > > TRUE. Which is not the desired outcome. > > And I think that it will hurt quite a bit if we force our users to take > care of their types. *We* don't force anybody. API developers *could potentionally* force their consumers to take care about their types. regards, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug

« previous php.internals (#48513) next »