Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread Wes
Maybe I wasn't clear enough the first time. If you want to merge two maps, you use $a + $b. This functionality already exist. The missing functionality is push / unshift and concat. (And if you really want it, the previously mentioned "ordered map concat" behavior)

Re: [PHP-DEV] Re: memcache, without a d, as in Venezuela

2018-11-19 Thread Pierre Joye
On Sun, Jun 24, 2018, 12:00 AM AllenJB Someone was asking about memcache vs memached on IRC the other day and I > advised them the memcache extension looked abandoned based on the PECL > page. Having 2 such similar extensions is confusing - It would also be > nice if someone could document the maj

Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread CHU Zhaowei
> Hi, I worked together with Chris Wright, author of the other RFC covering > the same thing. Thanks for pointing it out and also thanks CMB for posting the link. I tried to search for this topic but didn't find anything, as we have too many names for this feature. > The most important thing

[PHP-DEV] Re: PECL seems to ignore newer packages

2018-11-19 Thread Christoph M. Becker
On 19.11.2018 at 02:36, Helmut K. C. Tessarek wrote: > There's no support page for php/pecl infrastructure issues (at least I > couldn't find it), thus here I am. You can file bug reports on for such issues. If you choose “PECL” as affected package, respective mails will

Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread Wes
I didn't link it because that page was never updated with the progress we made :P

Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread Christoph M. Becker
On 19.11.2018 at 10:00, Wes wrote: > Hi, I worked together with Chris Wright, author of the other RFC covering > the same thing. For reference: . -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vis

Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread Wes
Also my opinion: it should work like push(). If people really want the "ordered map concat" functionality, then it should be an entirely different operator. Good luck

Re: [PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread Wes
Hi, I worked together with Chris Wright, author of the other RFC covering the same thing. You will find there is very little agreement on how this should work, which is the reason the RFC stalled... not because we didn't try. The most important thing is that we don't want it work like array_merge

[PHP-DEV] [RFC] Spread Operator in Array Expression

2018-11-19 Thread CHU Zhaowei
Hi internals, I'd like to start the discussion for [RFC: Spread Operator in Array Expression](https://wiki.php.net/rfc/spread_operator_for_array). In short, this is a syntax similar to argument unpacking, but for array. You can find the implementation [here](https://github.com/php/php-src/pull