Re: Return type hints
| From: | Ben Ramsey | Date: | Mon, 07 Apr 2008 15:03:30 +0000 |
| Subject: | Re: Return type hints | ||
| References: | 1 2 3 4 5 | Groups: | php.internals php.internals |
| Request: | Send a blank email to internals+get-36848@lists.php.net to get a copy of this message | ||
On 4/7/08 9:15 AM, Jarismar Chaves da Silva wrote:
Or something like this would be nice too, please avoid using +<TYPE> or (<TYPE>). class test { public static Itest function testing($instance) {I think this is the most intuitive approach. However, this means that regular function declarations would be like: Itest function testing($instance) {return $instance;} }
return $instance;} Would this present a problem? -- Ben Ramsey http://benramsey.com/