Re: [RFC] Alternative typehinting syntax for accessors
| From: | Clint Priest | Date: | Sun, 20 Jan 2013 15:47:57 +0000 |
| Subject: | Re: [RFC] Alternative typehinting syntax for accessors | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65044@lists.php.net to get a copy of this message | ||
On 1/20/2013 9:26 AM, Nikita Popov wrote:
I now added a patch for this proposal: https://gist.github.com/4579298 (For more detailed individual commits see here: https://github.com/nikic/php-src/commits/alternativeSyntax) One thing I hadn't noticed is that the proposal was to move the typehint, what happens in this case then:public DateTime $date {
get;
set(stdClass $value);
}
Would the above produce a compilation error on the stdClass part?
--
-Clint