Re: Type hinting

From: Date: Thu, 27 May 2010 14:24:51 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-48518@lists.php.net to get a copy of this message
Hi!
What we are talking about here is an **optional** feature for user-land function that allow the author to implement really cheap input-validation to facilitate ensuring that the correct input is supplied. Additionally it also
It's not really "optional" - if you use a library that does strict typing, you'd have to do strict typing in all code that uses this library (and all code using that code, etc.). Or use explicit conversions on each call, which nobody would do.
allows for better language interrogation for auto-generation of things like
SOAP WSDL and alike.
This can be done with phpdoc, so it's not even an argument, not for strict typing. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#48518) next »