Re: Automatic Property Initialization
| From: | David Muir | Date: | Wed, 09 Oct 2013 04:54:40 +0000 |
| Subject: | Re: Automatic Property Initialization | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69520@lists.php.net to get a copy of this message | ||
On 09/10/13 07:39, Nikita Popov wrote:
On Mon, Oct 7, 2013 at 11:53 AM, Gordon Oheim <gooh@php.net> wrote:Thanks Gordon and Nikita, I like the General Automatic Assignement idea. It does start getting into accessor territory (which I think is a better solution overall), but allows for writing a bit less boilerplate code. Would fluid interfaces still be possible? public function setFoo($this->foo) { return $this; } Cheers, DavidSince the feedback so far was few but positive, I'll advance the RFC to the next stage. Apart from this, any feedback is still welcome. Thanks and Regards, GordonFor the lazy folks, this is the RFC Gordon is talking about: https://wiki.php.net/rfc/automatic_property_initialization Nikita