Re: Return type hinting patch
| From: | Keryx Web | Date: | Thu, 01 May 2008 09:45:56 +0000 |
| Subject: | Re: Return type hinting patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37395@lists.php.net to get a copy of this message | ||
Alain Williams skrev:
Nice in some ways, except that it is different from the way that type hinting works in PHP5 classes - again: keep to one way of doing things. ': RetType' might be possible, but it is very different from where type hints are given currently in PHP. Stick with: function int &myfunction(int &$param)Yes, on second thought I agree. "Keep to one way of doing things" is definitely sound advice from a teaching POV. Lars Gunther