Re: [PHP-DEV] Re: Allow combining arg unpacking and named args

2021-06-10 Thread Levi Morrison via internals
On Thu, Jun 10, 2021 at 7:14 AM Nikita Popov wrote: > > On Tue, May 25, 2021 at 4:18 PM Nikita Popov wrote: > > > Hi internals, > > > > Currently, argument unpacking (...$foo) cannot be combined with named > > arguments (foo: $bar) at all. Both func(...$args, x: $y) and func(x: $y, > > ...$args)

Re: [PHP-DEV] Re: Allow combining arg unpacking and named args

2021-06-10 Thread Larry Garfield
On Thu, Jun 10, 2021, at 8:14 AM, Nikita Popov wrote: > On Tue, May 25, 2021 at 4:18 PM Nikita Popov wrote: > > > Hi internals, > > > > Currently, argument unpacking (...$foo) cannot be combined with named > > arguments (foo: $bar) at all. Both func(...$args, x: $y) and func(x: $y, > > ...$args)

[PHP-DEV] Re: Allow combining arg unpacking and named args

2021-06-10 Thread Nikita Popov
On Tue, May 25, 2021 at 4:18 PM Nikita Popov wrote: > Hi internals, > > Currently, argument unpacking (...$foo) cannot be combined with named > arguments (foo: $bar) at all. Both func(...$args, x: $y) and func(x: $y, > ...$args) are rejected by the compiler. > > https://github.com/php/php-src/pul