Re: [VOTE] Automatic Property Initialization

From: Date: Sun, 02 Feb 2014 01:29:45 +0000
Subject: Re: [VOTE] Automatic Property Initialization
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Sat, Feb 1, 2014 at 2:55 PM, Chris Wright <[email protected]> wrote:
> It seems to me that there is no direct conflict here, the two are not
> fundamentally incompatible and could quite comfortably co-exist in
> HHVM (which is I guess the issue here - you want to ensure that HHVM
> can run pure PHP - since there is already a lot of syntax in HHVM that
> cannot make the transition the other way).
>
Correction: I want PHP code to be runnable anywhere, regardless of
which platform it was written for.  It makes me sad that so few people
on this list seem to care about cross-compatibility.

> By contrast, the HHVM syntax *does* conflict with the recent extended
> keyword support RFC [1], and as a passive observer to the discussion I
> gauged a fairly positive reaction to this conceptually, the reason it
> was rejected was largely because the implementation was not up to
> standard - maybe I misread this but still, I don't recall this
> conflict being brought up at the time. The HHVM syntax would also make
> any future implementation of something like the recent property
> accessors RFC [2] difficult to mix in.
>
Thank you.  This is what I was asking for.  A reason that was
something more than "HHVM does it so we have to do it differently."

That said, I don't like the look of [1] as it blurs the line between
the lexer and the parser.
The conflict with [2] is a 100% legit argument though.

> I love some of things you guys have done with HHVM, but I don't like
> the idea of the HHVM implementation of something blocking an alternate
> route to the same goal suggested for PHP (especially when there is no
> direct conflict) - otherwise we may as well just throw PHP development
> out of the window and let the HHVM team decide where we go.
>
Again.  Don't put words in my mouth.  I never said anything about
blocking a PHP feature based on a conflict with HHVM.  Stop putting
words in my mouth. Stop it.

> I realise I've made barely anything in the way of material
> contributions to PHP, but even looking at it strictly from the point
> of view of a user, I know I'm not alone in wanting PHP to do what PHP
> does, and not necessarily what HHVM does (but if they coincide, so
> much the better).
>
"So much the better" is my point.  I've said repeatedly that "because
hhvm does it" is not enough reason for PHP to do it.  HOWEVER, it is
reason to try to steer the implementations closer together, not drive
them apart.

> [1] https://wiki.php.net/rfc/keywords_as_identifiers
> [2] https://wiki.php.net/rfc/propertygetsetsyntax-v1.2
>


Thread (34 messages)

« previous php.internals (#71960) next »