Re: [PHP-DEV] [VOTE] ImmutableIterable (immutable, rewindable, allows any key keys)

2021-06-17 Thread tyson andre
Hi Larry Garfield, Thanks for responding. > While I like the idea of an immutable collection, and the performance boost > seems useful, this proposal seems to go about it in a sloppy way. > > 1) Iterable doesn't seem like the right "family" for this. It is iterable, > but so are lots of

Re: [PHP-DEV] [VOTE] Pure intersection types

2021-06-17 Thread G. P. B.
On Thu, 3 Jun 2021 at 20:31, G. P. B. wrote: > Hello internals > > I've opened the vote for the "Pure intersection types" RFC: > https://wiki.php.net/rfc/pure-intersection-types > > It will run for 2 weeks and end on the 17th of June 2021 > > Best regards, > > George P. Banyard > The vote is

Re: [PHP-DEV] [RFC][DISCUSSION] Match expression v2

2021-06-17 Thread Mark Tomlin
Please excuse the year long bump, but I was hoping to draw some more attention to the implicit "match (true)" case. I'm just a regular user of PHP, nothing too fancy, just one of the many, many people around the world who use PHP. When I first started using match statements, I thought it was a

[PHP-DEV] PHP 8.0.8RC1 Available for testing

2021-06-17 Thread Gabriel Caruso
PHP 8.0.8RC1 has just been released and can be downloaded from: https://downloads.php.net/~pollita/ (thanks Sara for uploading everything) Or use the git tag: php-8.0.8RC1 Windows binaries are available at https://windows.php.net/qa#php-8.0 Please test it carefully, and report any bugs in the

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Larry Garfield
On Thu, Jun 17, 2021, at 2:54 AM, Côme Chilliet wrote: > Le Wed, 16 Jun 2021 11:16:28 -0500, > "Larry Garfield" a écrit : > > > Hi folks. The vote for the Partial Function Application RFC is now open, > > and > > will run until 30 June. > > > >

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Larry Garfield
On Thu, Jun 17, 2021, at 9:45 AM, Côme Chilliet wrote: > Le Thu, 17 Jun 2021 08:37:23 -0500, > "Larry Garfield" a écrit : > > > On Thu, Jun 17, 2021, at 2:54 AM, Côme Chilliet wrote: > > > > $c = stuff(...); > > > > $c = fn(int $i, string $s, float $f, Point $p, int $m = 0) > > > > =>

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Larry Garfield
On Thu, Jun 17, 2021, at 3:01 AM, Côme Chilliet wrote: > Le Wed, 16 Jun 2021 11:16:28 -0500, > "Larry Garfield" a écrit : > > > Hi folks. The vote for the Partial Function Application RFC is now open, > > and > > will run until 30 June. > > > >

Re: [PHP-DEV] [RFC] is_literal

2021-06-17 Thread Mike Schinkel
> On Jun 16, 2021, at 1:24 PM, Craig Francis wrote: > > On Sat, 12 Jun 2021 at 18:00, Craig Francis > wrote: > >> I'd like to start the discussion on the is_literal() RFC: >> https://wiki.php.net/rfc/is_literal >> > > Hi Internals, > > Following up on the is_literal() RFC, thanks for the

Re: [PHP-DEV] [VOTE] ImmutableIterable (immutable, rewindable, allows any key keys)

2021-06-17 Thread Larry Garfield
On Wed, Jun 16, 2021, at 12:09 PM, Levi Morrison via internals wrote: > > Over half of the objections are to functionality, over half to unspecified > > reasons, > > I support people choosing not to directly respond with their > unspecified reasons, but if anyone is open to sharing I would >

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Côme Chilliet
Le Thu, 17 Jun 2021 08:37:23 -0500, "Larry Garfield" a écrit : > On Thu, Jun 17, 2021, at 2:54 AM, Côme Chilliet wrote: > > > $c = stuff(...); > > > $c = fn(int $i, string $s, float $f, Point $p, int $m = 0) > > > => stuff($i, $s, $f, $p, $m); > > > > > $c = stuff(1, 'hi', 3.4, $point,

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Mike Schinkel
> On Jun 16, 2021, at 7:47 AM, Larry Garfield wrote: > > On Wed, Jun 16, 2021, at 3:16 AM, Nikita Popov wrote: > > Given that constructors that have side effects are arguably broken to begin > with (modulo debugging), I'd be comfortable with explicitly saying that the > evaluation order is

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Mike Schinkel
> On Jun 17, 2021, at 5:14 AM, Nicolas Grekas > wrote: > > Le mer. 16 juin 2021 à 13:47, Larry Garfield a > écrit : >> Would others be comfortable with that, if it allowed new-initializers for >> static properties and class constants? >> > > Honestly, I don't know. > > Instantiation might

Re: [PHP-DEV] Re: [RFC] is_literal

2021-06-17 Thread Moritz Friedrich
> Am 16.06.2021 um 23:01 schrieb Craig Francis : >> Throwing in another idea: is_hard_coded() > I’d be a little hesitant on the name ‘is_hard_coded’, if we allow integers, > that means that it’s no longer strictly hard coded, and might get confusing. Has `is_trusted` been considered yet? That

Re: [PHP-DEV] Re: [RFC] is_literal

2021-06-17 Thread Dik Takken
On 16-06-2021 23:01, Craig Francis wrote: >> Which leads us to the name, because "is_literal" may be, uh, too literal. >>> So can we come up with something better? >> >> Throwing in another idea: is_hard_coded(). >> > > > I’d be a little hesitant on the name ‘is_hard_coded’, if we allow

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Côme Chilliet
Le Wed, 16 Jun 2021 10:16:37 +0200, Nikita Popov a écrit : > 1. Eagerly evaluate initializers on declaration. This is what I tried in an > earlier revision of the RFC, and I don't think that approach works. It > breaks existing code and has various other unpleasant complications. > 2. Precisely

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Alexandru Pătrănescu
On Thu, Jun 17, 2021 at 12:53 PM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le Wed, 16 Jun 2021 10:16:37 +0200, > Nikita Popov a écrit : > > > 1. Eagerly evaluate initializers on declaration. This is what I tried in > an > > earlier revision of the RFC, and I don't think that

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Nikita Popov
On Thu, Jun 17, 2021 at 11:53 AM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le Wed, 16 Jun 2021 10:16:37 +0200, > Nikita Popov a écrit : > > > 1. Eagerly evaluate initializers on declaration. This is what I tried in > an > > earlier revision of the RFC, and I don't think that

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Nikita Popov
On Thu, Jun 17, 2021 at 11:14 AM Nicolas Grekas < nicolas.grekas+...@gmail.com> wrote: > Le mer. 16 juin 2021 à 13:47, Larry Garfield a > écrit : > > > On Wed, Jun 16, 2021, at 3:16 AM, Nikita Popov wrote: > > > > > > Arguments and attributes are enough to justify this RFC on its own, > > but is

[PHP-DEV] PHP 7.4.21RC1 is available for testing

2021-06-17 Thread Derick Rethans
PHP 7.4.21RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.21RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Côme Chilliet
Le Wed, 16 Jun 2021 11:16:28 -0500, "Larry Garfield" a écrit : > Hi folks. The vote for the Partial Function Application RFC is now open, and > will run until 30 June. > > https://wiki.php.net/rfc/partial_function_application I do not understand how this ... placeholder works, it feels

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Alexandru Pătrănescu
On Wed, Jun 16, 2021 at 11:17 AM Nikita Popov wrote: > > > The options where static properties and class constants are concerned are: > > 1. Eagerly evaluate initializers on declaration. This is what I tried in an > earlier revision of the RFC, and I don't think that approach works. It > breaks

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-17 Thread Côme Chilliet
Le Wed, 16 Jun 2021 11:16:28 -0500, "Larry Garfield" a écrit : > Hi folks. The vote for the Partial Function Application RFC is now open, and > will run until 30 June. > > https://wiki.php.net/rfc/partial_function_application From the RFC: > The ? character was chosen for the placeholder

Re: [PHP-DEV] [RFC] New in initializers

2021-06-17 Thread Nicolas Grekas
Le mer. 16 juin 2021 à 13:47, Larry Garfield a écrit : > On Wed, Jun 16, 2021, at 3:16 AM, Nikita Popov wrote: > > > > Arguments and attributes are enough to justify this RFC on its own, > but is > > > there a way we can resolve the static property question? Right now > the RFC > > > says