Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119581 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58838 invoked from network); 20 Feb 2023 14:38:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Feb 2023 14:38:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7E0D41804F2 for ; Mon, 20 Feb 2023 06:38:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Feb 2023 06:38:36 -0800 (PST) Received: by mail-pj1-f53.google.com with SMTP id pt11so2164628pjb.1 for ; Mon, 20 Feb 2023 06:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dqxtech-net.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=12FGPdR53efiByqG2oKx4URkYbMkm4SKg0KFz6DLQDo=; b=UAFyHdTi69p7jDq1HLHFYaOZ62dJrUo5ydTkdDZLQejN53FAIm5uwVeyk7vcSOmaMz +TSS9kalupE5uXsz4Celt1xpFlKBrIH8qT0YLy7+MSa8VoeQFwEMOekBBWey3pfbUMss mt0qTQIe8F6r1bX7zryg8ySCNWPKmMtT0t/YZLixapQ/JIOMAHKi9227DbWbvdcXayxv gOkjiUSW5CGPwKqMmuUO2HDIfl0JyRbACbMlMTAI4CBrWYt4QseQjZ5gLf29QPLCDz5Z oz+zpFGNsbqKtn6bP8h7AkFDTCPIFn1FijeY4ZVXRDPRqezZE/AHCYRn7UItL6RAWRo3 RSYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=12FGPdR53efiByqG2oKx4URkYbMkm4SKg0KFz6DLQDo=; b=bfgyEIxAVkUhdwnb9Cy5J7HwfAx6LS0ijxle3VZUYNkBsSZ0Tnrz8CDUgBZFXGt2et VE8iU1uBkhAUYkipJUGyTLC3M1TOwz6Yw5EYs4ugIQCmQFjwPRCjl+FoAy4M47o3p1zt l/ItLele2TGVpv63kaRfGwnTak/bk1ILtWkugbV0yzBVJ2O/VpLp5WibSHsJB71kq4q0 TkbelYyrPtd3vpYUqmEJhXMPAe/zEhPKWuOrBmBzu6T+ECngB4Hzi5KDS/U0JRjeu4nI YrGj/pOGvM9J6WDUW9ya0211Tu4gfJkxUBC773TcfQiGzEOU3VHWWbr3cCt9CUIR0Rci 5scQ== X-Gm-Message-State: AO0yUKXDWqp+hzCDrUHtY+bGId1e1fE9hy20jQr+Rh8mOKyKAC7yCy37 4k0pscWxq9wtPZ7XrUzgUpXTO63ZvLuaYDIB X-Google-Smtp-Source: AK7set+k+HqNmYmljTttovGMF1ybZofYehMrOB/xuMcM9swpz0J0yxztV+x+M+Xpa2p4lH0bgh5PRg== X-Received: by 2002:a05:6a20:3d81:b0:be:da1c:df65 with SMTP id s1-20020a056a203d8100b000beda1cdf65mr1168665pzi.28.1676903913471; Mon, 20 Feb 2023 06:38:33 -0800 (PST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com. [209.85.210.169]) by smtp.gmail.com with ESMTPSA id d7-20020aa78147000000b00571cdbd0771sm2343154pfn.102.2023.02.20.06.38.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Feb 2023 06:38:33 -0800 (PST) Received: by mail-pf1-f169.google.com with SMTP id d7so760613pfu.4 for ; Mon, 20 Feb 2023 06:38:32 -0800 (PST) X-Received: by 2002:aa7:8a54:0:b0:590:772d:7099 with SMTP id n20-20020aa78a54000000b00590772d7099mr248310pfa.3.1676903912470; Mon, 20 Feb 2023 06:38:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 20 Feb 2023 15:38:19 +0100 X-Gmail-Original-Message-ID: Message-ID: To: "G. P. B." Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000006804505f5229ef5" Subject: Re: [PHP-DEV] [RFC] Saner array_(sum|product)() From: andreas@dqxtech.net (Andreas Hennings) --00000000000006804505f5229ef5 Content-Type: text/plain; charset="UTF-8" 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 On Mon, 13 Feb 2023, 02:48 G. P. B., wrote: > Hello internals, > > If there are no further feedback I intend on opening the vote for this > tomorrow. > > Best regards, > > George P. Banyard > --00000000000006804505f5229ef5--