Re: [VOTE] Automatic Property Initialization

From: Date: Sat, 01 Feb 2014 09:43:20 +0000
Subject: Re: [VOTE] Automatic Property Initialization
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 02/01/2014 09:04 AM, Stas Malyshev wrote:
Hi!
I've opened the voting for Automatic Property Initialization: - https://wiki.php.net/rfc/automatic_property_initialization
Please note that this RFC adds actually two features - the $this->foo in ctor args and functions with empty body described as foo(); - but only if this function is a constructor. None of other functions can do that. Which sounds pretty inconsistent to me.
The patch currently just allow for $this→foo as constructor arguments, since this is the desired core functionality. Any of the other suggested features, like methodless constructors or alternative syntax or using a keyword are subject to discussion. They are not part of this patch.
The vote is for the current patch. You are solely voting on allowing $this→foo as constructor arguments. None of the other suggested features in this document are subject to vote.
The patch, and vote, is only for automatic property initialization, not methodless constructors. Cheers Joe

Thread (34 messages)

« previous php.internals (#71917) next »