Re: [PHP-DEV] Constructor parent property promotion

2020-09-01 Thread Mathieu Rochette
"Andreas Hennings" andr...@dqxtech.net – August 17, 2020 7:19 PM Interesting stuff! https://wiki.php.net/rfc/constructor_promotion I see this for the first time, bu

Re: [PHP-DEV] Constructor parent property promotion

2020-09-01 Thread Mathieu Rochette
On 8/17/20 7:14 PM, Lokrain wrote: On Mon, 17 Aug 2020 at 19:46, Mathieu Rochette wrote: Hi, I’m writing a message here to receive feedback on a two ideas related to class constructors before going more in details with an RFC. I hope this is appropriate behavior f

Re: [PHP-DEV] Constructor parent property promotion

2020-08-17 Thread Mathieu Rochette
    "Lokrain" lokr...@gmail.com – August 17, 2020 7:14 PM   >   > > On Mon, 17 Aug 2020 at 19:46, Mathieu Rochette > wrote: >   > >> Hi, >> >>   >> >> I’m writing a message here to receive feedback on a two ideas related to >> class constructors before going more in details with an RFC. I hope

Re: [PHP-DEV] Constructor parent property promotion

2020-08-17 Thread Andreas Hennings
Interesting stuff! https://wiki.php.net/rfc/constructor_promotion I see this for the first time, but I like it :) Now to your proposal. Just to make sure I understand: Would this map the parameters by name or by index? -> I assume by index, it makes more sense. Does it map to parent constructor pa

Re: [PHP-DEV] Constructor parent property promotion

2020-08-17 Thread Lokrain
On Mon, 17 Aug 2020 at 19:46, Mathieu Rochette wrote: > Hi, > > > > I’m writing a message here to receive feedback on a two ideas related to > class constructors before going more in details with an RFC. I hope this is > appropriate behavior for this list > > > > With the Constructor Property Pro