[RFC] Alternative typehinting syntax for accessors
| From: | Nikita Popov | Date: | Fri, 04 Jan 2013 14:41:07 +0000 |
| Subject: | [RFC] Alternative typehinting syntax for accessors | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-64520@lists.php.net to get a copy of this message | ||
Hi internals!
I already brought this up before, but I think the discussion at that time
was not very constructive and largely off-topic, so I'm bringing it up
again. To make sure everything is clear I wrote an RFC document:
https://wiki.php.net/rfc/propertygetsetsyntax-alternative-typehinting-syntax
This RFC proposes an alternative syntax for typehinting accessors, which
will in particular also allow to typehint properties directly, even if no
accessors are used (public DateTime $date).
What are your opinions on this?
Thanks,
Nikita