Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69520 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83916 invoked from network); 9 Oct 2013 04:54:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2013 04:54:46 -0000 Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.172 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 209.85.192.172 mail-pd0-f172.google.com Received: from [209.85.192.172] ([209.85.192.172:58551] helo=mail-pd0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/61-06817-391E4525 for ; Wed, 09 Oct 2013 00:54:43 -0400 Received: by mail-pd0-f172.google.com with SMTP id z10so345031pdj.17 for ; Tue, 08 Oct 2013 21:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LGI2MO8wmZSRY7oH3OM9ngvB4eWUQfclLwiYVRl4FNs=; b=l4picbIh+2sGyDlA+gKcVwrx/nQWw7WcP2UKN9V31+vj23Ze7FLShU29VEnT5en1Yv NfxIuiGRezEAAhbivAgrQC2n2armWfsepK/yQfoGj6xPM4ui+1nnXFbL8kW7ilJGtA31 O6bTMirIbN/Trk8Tt+/2P7EjPBlSc3KDATrtRCVzVwik5ONd0RIuHqEf24cvJ0crhQQH 5gATJhIgveGMmx4nc2rl3obfj71ZW4Di/wEoQf3oLY52KqUkpC/cFKCXEw1m1ZOK3LnO ge8mFAFFhsYWBTBS0HTn/ai12FFPQQSAi8MqXkeDcrHNMKgf3kMMGr82e+Mw8A+0snl3 Sziw== X-Received: by 10.68.240.2 with SMTP id vw2mr5858857pbc.80.1381294480316; Tue, 08 Oct 2013 21:54:40 -0700 (PDT) Received: from [192.168.1.108] (tmwpho1.lnk.telstra.net. [110.142.207.74]) by mx.google.com with ESMTPSA id hz10sm43770084pbc.36.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 21:54:39 -0700 (PDT) Message-ID: <5254E190.7010900@gmail.com> Date: Wed, 09 Oct 2013 15:54:40 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Nikita Popov , gooh@php.net CC: PHP internals References: <52528482.8060902@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Automatic Property Initialization From: davidkmuir@gmail.com (David Muir) On 09/10/13 07:39, Nikita Popov wrote: > On Mon, Oct 7, 2013 at 11:53 AM, Gordon Oheim wrote: > >> Since 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, Gordon >> > For the lazy folks, this is the RFC Gordon is talking about: > https://wiki.php.net/rfc/automatic_property_initialization > > Nikita > 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, David