Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116719 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35727 invoked from network); 22 Dec 2021 14:47:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Dec 2021 14:47:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B9BD41804F8 for ; Wed, 22 Dec 2021 07:51:52 -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.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 22 Dec 2021 07:51:52 -0800 (PST) Received: by mail-lf1-f51.google.com with SMTP id bp20so6337207lfb.6 for ; Wed, 22 Dec 2021 07:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YHjjLztFe1bu2gK3YWxIxpdJyGRfFYCxPnOL8Uh7NXo=; b=maFnlN0oG1cU+XFeGNhNNx2LJgvh8qmKMl/p1ooqJ4guN9l7ISEfpqW40qBqFBsfJe LRCx4X0+3Bh9/Pp9bNjMmKkhGsj1v8PpAqQtCaGh56xYxYeK4fJJa5hNX4poyewGnCBh 37I2Gy72wzoV9Hyzlx4K4HzPwpN39xPh6CoIg6LlIzvf9DRBvaX6KolENjpMZbzSwt7P 79bG8thPvrll4yaSXQ13t1S9CL850a6InkuySWif6LmZopu3+nagdXREQPKR0ZUIEGcC GXMJY1nDrRR9+sVmP4OKRTc50GRwUPCg/xe1QcrUmjhdnZWZpAIXYOIsoJOLnd7mLhfS VjlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YHjjLztFe1bu2gK3YWxIxpdJyGRfFYCxPnOL8Uh7NXo=; b=Ofw4OxML/AS1SSl0JbPVCTbLE87iuLwaTbkIVyFoL89g67Wx3Bgzd3/tcREkQ9TDYp PHp22eh8vEbuChO7NHCAV5tfUcO0c7FsVRCmlW0N2Ii7+TDzBJ/7zb81/JhhyBHI9tTy fLcQjjR4qUfc45xqxorHCnFZs128B1Lvkw2p+LL+Do+2RGy1mt7M+UgUc2lxAKYkGcUF OIe0iAgCROlbT/IfTWl3xqfNr1nWZRZEspIjQ8IT/mpZ7a8R7XVbBtH1Ief+tnjwpD3m mSns6811wfPtWIedXC7Xz4LqJpz2ekkosE7B1D2w08yRfqea7uQqUdgFGxUhbmn4EBEY MRQA== X-Gm-Message-State: AOAM531CeW1NxkPaqhYSKsMC57zyPdi5TuI+rSdWMFrfOZoTliOCD6m+ smLdYW+q6JqznrZIC+XMOeWi6a4j7d5jH7GjEGs= X-Google-Smtp-Source: ABdhPJyrGQZV4D7gh1IOgywF8kOlw2KoSCWXiFhSqe3Fwkge1bVIafZ7QSBjF18CEhkgyTOMEJ3O1at7qYPrQ4VmXYs= X-Received: by 2002:a19:ca55:: with SMTP id h21mr2735225lfj.661.1640188310538; Wed, 22 Dec 2021 07:51:50 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 22 Dec 2021 07:51:39 -0800 Message-ID: To: Hassan Ahmed <7snovic@gmail.com> Cc: Levi Morrison , php internals Content-Type: multipart/alternative; boundary="0000000000009d4c6e05d3be1954" Subject: Re: [PHP-DEV] [VOTE] Add array_group function From: jordan.ledoux@gmail.com (Jordan LeDoux) --0000000000009d4c6e05d3be1954 Content-Type: text/plain; charset="UTF-8" On Wed, Dec 22, 2021 at 1:39 AM Hassan Ahmed <7snovic@gmail.com> wrote: > Hello Levi, maybe, I just was confused while I was rewriting it. any tips > would be appreciated. > There's a lot of information about this that is missing from the RFC. It says it "will be overwritten". Does that mean that it does a right union? What exactly is the meaning of null for the parameters? That isn't covered. The language on how it handles key conflicts is confusing. It says that it "currently" handles it by "overwriting", but doesn't explain what that means. It also doesn't *currently* do that, since it isn't currently part of the language. You have to scroll down to the example to decipher that "overwrite" means it takes the last value. It says there's no backwards incompatible breaks, but that isn't strictly true, as the `array_group()` function in the global namespace will now be occupied. That *might* be a rather small BC break, but I'm not sure. I think you are seeing no votes mostly because the RFC itself is simply incomplete. It doesn't describe the use case, it doesn't describe the implementation at all, and it doesn't describe the edge cases at all. I think it could be an idea that people might support, but you probably need to find someone who has done an RFC before to help you workshop it a bit. These are all fixable problems in the RFC document, it could be that the implementation and the idea are well received. Jordan --0000000000009d4c6e05d3be1954--