Re: type hinting

From: Date: Fri, 04 Jan 2008 17:20:50 +0000
Subject: Re: type hinting
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-34418@lists.php.net to get a copy of this message
Hello Pierre, we never accepted this as a pro argument. Infact we often saw the necessaity to highlight something is optional to vote against it. We do this for a reason. That is we only want to support mainstream features. marcus Friday, January 4, 2008, 5:53:56 PM, you wrote: > On Jan 4, 2008 5:53 PM, Pierre <pierre.php@gmail.com> wrote: >> On Jan 4, 2008 4:52 PM, Gregory Beaver <greg@chiaraquartet.net> wrote: >> >> > But I *don't* want my functions to take an argument of arbitrary type - >> > it is in fact you who are missing the point. A type hint is a poor >> > solution to a real problem that is much more easily solved via simple >> > input validation and graceful error handling. The current situation in >> > PHP provides a much more flexible solution to the same problem. >> >> Unlike our OO strictness (E_FATAL!!), nothing will prevent you to use > Read: othing will prevent you to >do not< use it :) > -- > Pierre > http://blog.thepimp.net | > http://www.libgd.org Best regards, Marcus

« previous php.internals (#34418) next »