Re: [VOTE] Automatic Property Initialization
| From: | Sara Golemon | Date: | Sun, 02 Feb 2014 02:46:00 +0000 |
| Subject: | Re: [VOTE] Automatic Property Initialization | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71965@lists.php.net to get a copy of this message | ||
On Sat, Feb 1, 2014 at 6:06 PM, Benjamin Eberlei <kontakt@beberlei.de> wrote:
> Imho HHVMs syntax has the massive flaw that you cannot use docblocks on
> those properties anymore, which is not the case with this RFC. All other
> things equal, this is why this RFC should clearly be favored.
>
> Also with typehints or - unlikely but possible - property-accesors the hhvm
> syntax will become very verbose for the __construct line, wheras this RFC
> can handle those cases without having to think about future compatibility.
>
Inclined to agree on the matter of getters/setters (though I regard
the docblock issue as trivially solvable, and the typehint/verbosity
issue as a non-issue).
I've opened a discussion in the hhvm.dev group to look into this from
that side, and removed my "No" vote for the time being. (I'm not sold
on a "Yes" vote, however, as I'm not sure this buys us enough in its
proposed form).
-Sara