Re: type hinting

From: Date: Fri, 04 Jan 2008 19:04:47 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-34451@lists.php.net to get a copy of this message
Well it would be much easier to type hint than to manually document every one of your function parameters.
How is this: /* @param $client string Contains the name of the client for the account is worse or less clear or harder to write that this: processAccount(string $client) Note that unless you write the former you code is still undocumented and knowing it's a string won't help you much. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#34451) next »