Re: [PHP-DEV] [RFC] Explicit call-site pass-by-reference (again)

2020-02-21 Thread Mike Schinkel
> On Feb 21, 2020, at 5:20 PM, Rowan Tommins wrote: > > On 20 February 2020 14:13:58 GMT+00:00, Nikita Popov > wrote: >> Hi internals, >> >> I'd like to start the discussion on the "explicit call-site >> pass-by-reference" RFC again: >> https://wiki.php.net/rfc/explicit_send_by_ref > > My

Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties

2020-02-21 Thread Andreas Hennings
When writing immutable classes, I want to be able to set properties in static factories and in wither methods. Once the new instance is sent to the outside world, its properties can be locked to prevent further modification. This sounds to me like we need different modes. Either the object

Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties

2020-02-21 Thread Larry Garfield
On Fri, Feb 21, 2020, at 4:29 AM, Máté Kocsis wrote: > > > > Yeah, I'm definitely thinking in relation to the earlier discussion, since > > I think they're all inter-related. (This, property accessors, and constant > > expressions.) > > > > The biggest question is whether it's worth to support

Re: [PHP-DEV] [RFC] Explicit call-site pass-by-reference (again)

2020-02-21 Thread Rowan Tommins
On 20 February 2020 14:13:58 GMT+00:00, Nikita Popov wrote: >Hi internals, > >I'd like to start the discussion on the "explicit call-site >pass-by-reference" RFC again: >https://wiki.php.net/rfc/explicit_send_by_ref Hi Nikita, Thanks for putting the case for this so clearly. My instinctive

Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties

2020-02-21 Thread Máté Kocsis
> > Of course, that does leave the question of how often you need one or the > other. Maybe just the asymmetric visibility is sufficient for most > practical purposes, in which case it may not be worthwhile to introduce > readonly properties as a separate feature. > The examples shown in my

Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties

2020-02-21 Thread Máté Kocsis
> > Yeah, I'm definitely thinking in relation to the earlier discussion, since > I think they're all inter-related. (This, property accessors, and constant > expressions.) > The biggest question is whether it's worth to support both readonly properties and property accessors. My answer is clear

Re: [PHP-DEV] New PCRE function

2020-02-21 Thread Nico Oelgart
On Thu, Feb 20, 2020 at 10:12 AM Nikita Popov wrote: > FWIW, it is our established stance that all error messages must be > capitalized. Lower-case first character is only permitted if it is part of > a function name, or similar cases. > Thanks for clearing this up, Nikita. Given that, I think

Re: [PHP-DEV] [RFC] Explicit call-site pass-by-reference (again)

2020-02-21 Thread Nikita Popov
On Fri, Feb 21, 2020 at 12:05 AM Larry Garfield wrote: > On Thu, Feb 20, 2020, at 8:47 AM, Levi Morrison via internals wrote: > > Just chiming in to voice strong support for this RFC. This is a key > > piece toward making PHP code statically analyzable. If it becomes > > required at the call