On Mon, May 11, 2020 at 5:26 PM Dan Ackroyd wrote:
> On Mon, 11 May 2020 at 10:52, Nikita Popov wrote:
> >
> > Please tell me if you have further concerns
>
> Question - as this is just sugar, presumably it doesn't add much
> complexity to the PHP engine?
>
Yes, the implementation complexity
On Mon, 11 May 2020 at 10:52, Nikita Popov wrote:
>
> Please tell me if you have further concerns
Question - as this is just sugar, presumably it doesn't add much
complexity to the PHP engine?
Vague concern - because it's a novel syntax, I find it hard to read,
particularly when there are
On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote:
> Hi internals,
>
> I would like to submit the following RFC for your consideration:
> https://wiki.php.net/rfc/constructor_promotion
>
> This is based on one off the suggestions made in
> https://externals.io/message/109220, and some existing
Hi Nikita,
Nikita Popov wrote:
On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote:
> I think the best answer to this question may be to forbid the use of
attributes on promoted properties entirely, because there is no unambiguous
interpretation for them. I also think that using attributes
On Wed, May 6, 2020, at 3:31 AM, Nikita Popov wrote:
> On Tue, May 5, 2020 at 10:27 PM Larry Garfield
> wrote:
>
> > On Tue, May 5, 2020, at 7:35 AM, Nikita Popov wrote:
> >
> >
> > > Performing validation when the getAttributes() call is performed does
> > sound
> > > reasonable to me. We can
On Tue, May 5, 2020 at 10:27 PM Larry Garfield
wrote:
> On Tue, May 5, 2020, at 7:35 AM, Nikita Popov wrote:
>
>
> > Performing validation when the getAttributes() call is performed does
> sound
> > reasonable to me. We can also add a class flag to perform this validation
> > only once (if it is
On Tue, May 5, 2020, at 7:35 AM, Nikita Popov wrote:
> Performing validation when the getAttributes() call is performed does sound
> reasonable to me. We can also add a class flag to perform this validation
> only once (if it is successful), so the cost doesn't have to be paid by
> every single
On Wed, Apr 29, 2020 at 11:27 AM Benjamin Eberlei
wrote:
>
>
> On Wed, Apr 29, 2020 at 11:07 AM Nikita Popov
> wrote:
>
>> On Wed, Apr 29, 2020 at 10:56 AM Benjamin Eberlei
>> wrote:
>>
>>>
>>>
>>> On Wed, Apr 29, 2020 at 9:47 AM Nicolas Grekas <
>>> nicolas.grekas+...@gmail.com> wrote:
>>>
On Wed, Apr 29, 2020 at 11:07 AM Nikita Popov wrote:
> On Wed, Apr 29, 2020 at 10:56 AM Benjamin Eberlei
> wrote:
>
>>
>>
>> On Wed, Apr 29, 2020 at 9:47 AM Nicolas Grekas <
>> nicolas.grekas+...@gmail.com> wrote:
>>
>>> > I think it might be best to apply to "both" and provide an isPromoted()
On Wed, Apr 29, 2020 at 10:56 AM Benjamin Eberlei
wrote:
>
>
> On Wed, Apr 29, 2020 at 9:47 AM Nicolas Grekas <
> nicolas.grekas+...@gmail.com> wrote:
>
>> > I think it might be best to apply to "both" and provide an isPromoted()
>> > method on both ReflectionParameter and ReflectionProperty.
On Wed, Apr 29, 2020 at 9:47 AM Nicolas Grekas
wrote:
> > I think it might be best to apply to "both" and provide an isPromoted()
> > method on both ReflectionParameter and ReflectionProperty. Any code that
> > wishes to validate the allowed positions of an attribute can then skip
> >
> I think it might be best to apply to "both" and provide an isPromoted()
> method on both ReflectionParameter and ReflectionProperty. Any code that
> wishes to validate the allowed positions of an attribute can then skip
> properties/parameters that report isPromoted() as true, to avoid reporting
On Wed, Apr 29, 2020 at 2:05 AM Larry Garfield
wrote:
> On Tue, Apr 28, 2020, at 10:56 AM, Nicolas Grekas wrote:
> > >
> > > > I would expect attributes to apply only to the properties on my side.
> > >
> > > Parameter annotations could be interesting for dependency injection.
> > > Symfony
On Tue, Apr 28, 2020, at 10:56 AM, Nicolas Grekas wrote:
> >
> > > I would expect attributes to apply only to the properties on my side.
> >
> > Parameter annotations could be interesting for dependency injection.
> > Symfony currently has some DI magic through parameter names among
> > other
>
> > I would expect attributes to apply only to the properties on my side.
>
> Parameter annotations could be interesting for dependency injection.
> Symfony currently has some DI magic through parameter names among
> other things. It might be nice to control these through annotations
> instead.
Hi Nicolas
> I would expect attributes to apply only to the properties on my side.
Parameter annotations could be interesting for dependency injection.
Symfony currently has some DI magic through parameter names among
other things. It might be nice to control these through annotations
instead.
> On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote:
>
> > Hi internals,
> >
> > I would like to submit the following RFC for your consideration:
> > https://wiki.php.net/rfc/constructor_promotion
> >
> > This is based on one off the suggestions made in
> > https://externals.io/message/109220,
On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote:
> Hi internals,
>
> I would like to submit the following RFC for your consideration:
> https://wiki.php.net/rfc/constructor_promotion
>
> This is based on one off the suggestions made in
> https://externals.io/message/109220, and some existing
nce in
practice though.
> In my opinion, the existing PHP syntax is already clear and good enough.
>
Fair enough :)
Nikita
--
> *From:* Nikita Popov
> *Sent:* Tuesday, April 14, 2020 16:02
> *To:* PHP internals
> *Subject:* [PHP-DEV] Re: [RFC] Cons
On Thu, Mar 26, 2020 at 2:30 PM Nikita Popov wrote:
> Hi internals,
>
> I would like to submit the following RFC for your consideration:
> https://wiki.php.net/rfc/constructor_promotion
>
> This is based on one off the suggestions made in
> https://externals.io/message/109220, and some existing
20 matches
Mail list logo