Re: [PHP-DEV] [RFC] Readonly properties

2021-06-09 Thread Pierre Joye
On Thu, Jun 10, 2021 at 11:08 AM Mike Schinkel wrote: > > Hi Larry, > > Thanks for the response. > > > On Jun 9, 2021, at 12:51 PM, Larry Garfield wrote: > > > > Pierre and Mike: > > > > "Asymmetric visibility" as we keep referring to it would mean the "implicit accessors only" version of this: h

Re: [PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-06-09 Thread Alexandru Pătrănescu
On Wed, Jun 9, 2021 at 3:22 AM tyson andre wrote: > Hi internals, > > > I've created a new RFC https://wiki.php.net/rfc/cachediterable adding > CachedIterable, > > which eagerly evaluates any iterable and contains an immutable copy of > the keys and values of the iterable it was constructed from

Re: [PHP-DEV] [RFC] Readonly properties

2021-06-09 Thread Mike Schinkel
Hi Larry, Thanks for the response. > On Jun 9, 2021, at 12:51 PM, Larry Garfield wrote: > > Pierre and Mike: > > "Asymmetric visibility" as we keep referring to it would mean the "implicit > accessors only" version of this: https://wiki.php.net/rfc/property_accessors > > That is, it would le

Re: [PHP-DEV] [RFC] Readonly properties

2021-06-09 Thread Pierre Joye
Good morning Larry, Thank you. Very good summary, maybe worth adding to the RFC :) On Wed, Jun 9, 2021 at 11:52 PM Larry Garfield wrote: > readonly would be a separate, independent feature/syntax. Yes, my thought is about self explanatory syntax matching common usage of the same syntax/keywor

[PHP-DEV] [VOTE] Deprecate autovivification on false

2021-06-09 Thread Kamil Tekiela
Hi Internals, I have limited the RFC to disabling autovivification on false only, which was the initial scope of the RFC. The only two possible cases remaining will be undefined and null. After what Tyson Andre clearly explained, null is commonly used and leads to many more complex situations. I

Re: [PHP-DEV] [RFC] Readonly properties

2021-06-09 Thread Larry Garfield
On Wed, Jun 9, 2021, at 5:05 AM, Pierre Joye wrote: > Hi Nikita, > > On Fri, Jun 4, 2021 at 10:19 PM Nikita Popov wrote: > > > > Hi internals, > > > > I'd like to open the discussion on readonly properties: > > https://wiki.php.net/rfc/readonly_properties_v2 > > Very good work, thank you :) > >

Re: [PHP-DEV] Re: [RFC] Under Discussion: Add Random class and RandomNumberGenerator interface

2021-06-09 Thread Guilliam Xavier
On Wed, Jun 9, 2021 at 3:16 PM Go Kudo wrote: > Thanks Guilliam. > > > I'm not sure you really addressed > https://externals.io/message/114561#114680 ? > > I thought I had solved this problem by implementing the > `RandomNumberGenerator` interface. > > Accepting strings and objects as arguments i

Re: [PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-06-09 Thread Peter Bowyer
On Wed, 9 Jun 2021 at 15:55, Levi Morrison via internals < internals@lists.php.net> wrote: > On Wed, Jun 9, 2021 at 8:12 AM tyson andre > wrote: > > > > Hi Levi Morrison, > > > > > > > Hi internals, > > > > > > Would participants please trim the emails they're quoting, it makes it easier for re

Re: [PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-06-09 Thread Levi Morrison via internals
On Wed, Jun 9, 2021 at 8:12 AM tyson andre wrote: > > Hi Levi Morrison, > > > > > Hi internals, > > > > > > > > > I've created a new RFC https://wiki.php.net/rfc/cachediterable adding > > > > > CachedIterable, > > > > > which eagerly evaluates any iterable and contains an immutable copy > > > >

Re: [PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-06-09 Thread tyson andre
Hi Levi Morrison, > > > Hi internals, > > > > > > > I've created a new RFC https://wiki.php.net/rfc/cachediterable adding > > > > CachedIterable, > > > > which eagerly evaluates any iterable and contains an immutable copy of > > > > the keys and values of the iterable it was constructed from > >

Re: [PHP-DEV] Re: [RFC] Under Discussion: Add Random class and RandomNumberGenerator interface

2021-06-09 Thread Go Kudo
Thanks Guilliam. > I'm not sure you really addressed https://externals.io/message/114561#114680 ? I thought I had solved this problem by implementing the `RandomNumberGenerator` interface. Accepting strings and objects as arguments is certainly complicated, but I thought it met the necessary req

Re: [PHP-DEV] Re: [RFC] Under Discussion: Add Random class and RandomNumberGenerator interface

2021-06-09 Thread Guilliam Xavier
> > Couldn't the Random class simply implement `public function __clone(): > void` (that would internally do like `$this->algo = clone $this->algo;`)? > Sorry I meant like `$this->rng = clone $this->rng;`. PS: Please don't reply to this erratum, but rather to the previous message ;)

Re: [PHP-DEV] Re: [RFC] Under Discussion: Add Random class and RandomNumberGenerator interface

2021-06-09 Thread Guilliam Xavier
Hello Go Kudo, On Tue, Jun 8, 2021 at 2:33 PM Go Kudo wrote: > Hello iinternals. > > There doesn't seem to be much mention of it. > But, that may be because it has been discussed well in advance. > Thank you for participating in the discussion. > I'm not sure you really addressed https://extern

Re: [PHP-DEV] [RFC] Readonly properties

2021-06-09 Thread Pierre Joye
Hi Nikita, On Fri, Jun 4, 2021 at 10:19 PM Nikita Popov wrote: > > Hi internals, > > I'd like to open the discussion on readonly properties: > https://wiki.php.net/rfc/readonly_properties_v2 Very good work, thank you :) > This proposal is similar to the > https://wiki.php.net/rfc/write_once_pro