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
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
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_initializationNikita
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
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.
I like the proposed syntax of https://wiki.php.net/rfc/constructor-promotion
better.
The methodless constructor makes sense when adding this feature!
I quite like the shortened constructors. You did a good job of explaining
how it it would work in a variety of situations and I have no questions on
the behavior of the basic proposal.
I don't like the Alternate Syntax: the difference between the current
behavior and the proposed is triggered only by not having a body. I could
perhaps be persuaded but currently I'm 33/66 on it.
At first I didn't like the General Automatic Assignment either, but
currently I am 50/50. I'd like to hear some more discussion on this point,
so if you have an opinion on it could you please speak up? My only thought
is that shortened syntax for non-constructors would be less helpful if we
had accessors, but they don't necessarily interfere with each other and we
don't have accessors so I think that's okay.