Re: Property Accessors v1.2 : Typehints / Accessor Syntax
| From: | Levi Morrison | Date: | Mon, 15 Oct 2012 14:12:21 +0000 |
| Subject: | Re: Property Accessors v1.2 : Typehints / Accessor Syntax | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63414@lists.php.net to get a copy of this message | ||
> public DateTime $date;
This is *real* progress, even if under the hood all it does is wrap
functions and use function type-hints. This piece of code is SO much
shorter and cleaner. Will it be a bit confusing to new developers?
Maybe, but I don't care. It is not aimed at making the lives of new
developers easy; it's designed to make the lives of those who know
about it easy. In any case, this is such an enhancement that I don't
think it would take very long before there would be plenty of
tutorials out there to help the beginners anyway.