Re: Q on Primitives
| From: | Nathan Rixham | Date: | Fri, 19 Dec 2008 15:09:40 +0000 |
| Subject: | Re: Q on Primitives | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42351@lists.php.net to get a copy of this message | ||
Robin Burchell wrote:
Hmm. How would it break it? By leaving 'function' to mean variant, it's only adding new functionality by overriding types to replace 'function', which should have no issue with older code, surely? To clarify: current method declaration: function foo() public static function foo() public function foo() because all of those current declarations would no longer work on the new version of php which implemented such change..? and I'm assuming it would be a much bigger change to the php internals than adding in an optional type after the method params..?I do like the "type method()" syntax though, but don't think it's a php thing..?