Re: [RFC] Saner array_(sum|product)()
| From: | G. P. B. | Date: | Mon, 20 Feb 2023 14:46:00 +0000 |
| Subject: | Re: [RFC] Saner array_(sum|product)() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119582@lists.php.net to get a copy of this message | ||
On Mon, 20 Feb 2023 at 14:38, Andreas Hennings <andreas@dqxtech.net> wrote:
> Hello,
> the RFC seems like a good idea to me.
> However, I do not see any mention of plus operator on arrays, e.g. ['a' =>
> 'A'] + ['b' => 'B']. The array_reduce() would support this,
> but I think
> array_sum() would not, because of the return type. I just think this should
> be made more explicit.
> -- Andreas
>
Arrays are mentioned in the RFC, and they are already not supported in the
array_(sum|product) functions and remain unsupported.
Best,
George P. Banyard