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

2021-06-08 Thread Levi Morrison via internals
On Tue, Jun 8, 2021 at 10:47 PM Levi Morrison wrote: > > On Tue, Jun 8, 2021 at 6:22 PM 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 immuta

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

2021-06-08 Thread Levi Morrison via internals
On Tue, Jun 8, 2021 at 6:22 PM 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 constructe

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

2021-06-08 Thread tyson andre
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 > > This has the proposed signature: > > ``` > final cl

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

2021-06-08 Thread Mike Schinkel
> On Jun 8, 2021, at 5:18 AM, Nikita Popov wrote: > > Well, I think we can get an approximation like this: > > https://beta.grep.app/search?q=%7B%20get%3B%20private%20set%3B%20%7D&filter[lang][0]=C%23 > > > { get

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

2021-06-08 Thread Larry Garfield
On Tue, Jun 8, 2021, at 4:18 AM, Nikita Popov wrote: > > (Like, for example, if one had a readonly property but wanted to convert > > it to a custom accessor property... what are the subtle knock on effects > > they have to account for, then? There are almost certainly more of them > > than if sw

Re: [PHP-DEV] [RFC] Pipe Operator, take 2

2021-06-08 Thread Guilliam Xavier
On Tue, Jun 8, 2021 at 4:09 PM Larry Garfield wrote: > On Tue, Jun 8, 2021, at 5:41 AM, Guilliam Xavier wrote: > > > you forgot to update one > > `explode(?)` to `str_split(?)`, and also, the first `fn($v) => > > 'strtoupper'` should be just `'strtoupper'`. > > I deliberately made that example ex

Re: [PHP-DEV] Refactor

2021-06-08 Thread Kalle Sommer Nielsen
Den tir. 8. jun. 2021 kl. 17.02 skrev Kalle Sommer Nielsen : > In layman terms > that means that Zend has more decision making power over any > individual contributor. Seems like I did a freudian slip, the above should read as following; "In layman terms that means Zend has *no* more decision m

Re: [PHP-DEV] [RFC] Pipe Operator, take 2

2021-06-08 Thread Larry Garfield
On Tue, Jun 8, 2021, at 5:41 AM, Guilliam Xavier wrote: > > Hm. You're right. It used to, but it's been a very long time since > > explode() allowed an empty split, apparently. I updated the example to use > > str_split, which is what I'd intended to do in this case. Thanks. > > > > Are you t

Re: [PHP-DEV] Refactor

2021-06-08 Thread Kalle Sommer Nielsen
Den man. 7. jun. 2021 kl. 13.52 skrev Mail : > > Oh yes; it is; > > Mathew from Laminas has also held managerial position in Zend. > Thats the one who banned me ( on Laminas forum ) when I asked about the > comments section refering to Zend in every file. > > If you want to cut ties with Zend allt

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

2021-06-08 Thread Go Kudo
Sorry, I missed the first question. > "Random class can be serialized or cloned if the algorithm supports it." It isn't clear to me how that support is defined in a userland implementation? Simply by implementing __serialize/__unserialize? Userland implementations can be serialize / unserialize

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

2021-06-08 Thread Go Kudo
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. Now, if there is no particular discussion on this, I will try to start the voting phase next week. Of course, I will contac

RE: [PHP-DEV] PHP 8.1 and PECL ext builds for Windows

2021-06-08 Thread Anatol Belski
Hi Christoph, > -Original Message- > From: Christoph M. Becker > Sent: Monday, June 7, 2021 11:42 PM > To: Anatol Belski ; Nikita Popov > > Cc: PHP internals > Subject: Re: [PHP-DEV] PHP 8.1 and PECL ext builds for Windows > > On 07.06.2021 at 13:32, Anatol Belski wrote: > > > Removin

Re: [PHP-DEV] [RFC] Pipe Operator, take 2

2021-06-08 Thread Guilliam Xavier
Hi, On Tue, Jun 8, 2021 at 12:09 AM Larry Garfield wrote: > On Mon, Jun 7, 2021, at 4:00 PM, Eugene Leonovich wrote: > > On Mon, Jun 7, 2021 at 9:03 PM Larry Garfield > > wrote: > > > > > https://wiki.php.net/rfc/pipe-operator-v2 > > > > > FTR, there are several typos in the "Hello World" examp

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

2021-06-08 Thread Nikita Popov
On Mon, Jun 7, 2021 at 4:09 PM Larry Garfield wrote: > On Mon, Jun 7, 2021, at 4:06 AM, Nikita Popov wrote: > > On Sat, Jun 5, 2021 at 6:51 PM Larry Garfield > > wrote: > > > > Thank you for the detailed analysis in the rationale section. I am, > > > however, still skeptical of this approach, f