Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113287 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30369 invoked from network); 26 Feb 2021 13:04:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Feb 2021 13:04:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8A9D71804F4 for ; Fri, 26 Feb 2021 04:53:19 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 ; Fri, 26 Feb 2021 04:53:19 -0800 (PST) Received: by mail-ot1-f43.google.com with SMTP id v12so7822840ott.10 for ; Fri, 26 Feb 2021 04:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Oba2DjLqEqseOgyVH3R1fE3Blo3SGNEFcRE47hXHEkc=; b=gq4x4ihKAn/aN2CBzbQYpa9wS8eTYpLElx/NjAt8Mnv1b7/b6M6PVmwKsU4TOImxK5 oUgykjP5OG3CiptQ0J67JL4ANH06gPrlfjT5BsIjQkSIR6hrSowKRXx39epw/qKUvA4R srWQYLr5JutdNJRt9fyVCvdvW6turxRuXuhst8qNq8PwJ10xSQ5Et4NmnzDLDZPq620A 2XeJVHUTc7IifG/m0EQhjLlX8WDsMaJhELunKrwi/fIcptKC9JZ/ekifgsh4XrusT/st i/xpDRHTnvp/UNk9jzyku58w1ZfgCTMXVkmev4Sga4zSFw1zUL1eizM13sjc93TLbgKK NmMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oba2DjLqEqseOgyVH3R1fE3Blo3SGNEFcRE47hXHEkc=; b=Kx2V7K0MJkwcDQU54oNYouRYBDf3yWUNlMuAdZAWZ7dj35PdFbfAId9jkQuJJx0TPw OWl8RINZgMKRDJHboXieomvFrbhcmui6ADYku2im42XqLkhK06ZRXJ+qA79GRRS5KhP+ c6h0PftnaEqPOtg0N2Jy9eFCxNPzyVoBsTLYFsNKh5KcCeSMwGMvYfAa/05rp3IEaeUd PisASC4FuCsHUIQUWJl1fZ2hdSN8M5sK+KoEjad74Vvf+nfeIapVVjcfllxEAukBnc58 EHjJZTYULA0wNWelkDjsL93P9eDUPgh6vU/pgVgF0KsKwP4At0mCfPDo6MnC6WjJQEo7 qvng== X-Gm-Message-State: AOAM531eriTgnXexnIuRo8GqKAMSl5pXdKY2yuIIeritL1oe53DjVC4D hShiMrr0/Ag7tk0WPVGmNz4tU3fsW+ZihOgaEDk= X-Google-Smtp-Source: ABdhPJw8MwKC55trC3Y9e7o4xVt5lbiTsrHp+3c6UJ8EemfGDA3Soxwoha2jwqh+if0BDMUcODhBXDQK0NDi7FJol5E= X-Received: by 2002:a9d:6742:: with SMTP id w2mr2050505otm.358.1614343998374; Fri, 26 Feb 2021 04:53:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Feb 2021 13:53:07 +0100 Message-ID: To: Guilliam Xavier Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000091864505bc3cc0e5" Subject: Re: [PHP-DEV] [RFC] Namespaced in bundled extensions From: benjamin.morel@gmail.com (Benjamin Morel) --00000000000091864505bc3cc0e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Maybe off-topic, but I don't think you could "fix" them: > for array_map, the array is variadic-like, so must be last; > for array_filter, the callback is optional, so must be after the array. > (Correct me if I'm wrong.) > > -- > Guilliam Xavier > Good point. Then that would be an opportunity to question whether array_map() is doing too much, and should just work on a single array. Like Array.map() in JS, Stream.map() in Java, Iterator.map() in Rust, etc. =E2=80=94 Benjamin --00000000000091864505bc3cc0e5--