Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113283 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19024 invoked from network); 26 Feb 2021 11:35:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Feb 2021 11:35:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2DA2E18053F for ; Fri, 26 Feb 2021 03:24:31 -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_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 03:24:30 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id v5so13272837lft.13 for ; Fri, 26 Feb 2021 03:24:30 -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=kFsML0K4UhmZ2vqdjxibIp6QjkwIq3j2GyflfbZLaAw=; b=jaJF1hMQLWxPG5GJY/pmP5AlRcFFlQDxuAVALXj1J9rK4PhnVG2q9PimVmFaxBnYFb HO8hjTqthjIHUiJyOkpIJwKls/XkIU+VbLurNU20fSMXn0MXEnxowjuWvgOVmk9DRS+2 tegIqUlIo8yX4ndmt5ZCwbkvzFARnCDylaDizbMQZdge1pE40CPhJ+iMIMCC5PBCkv34 6h7twv2mraX78anl5pChwkYtTsdzhFDH2elyT5/kN7B9RaU0fxksIWPmYu9Ur0nqfC5N gX2cNeJU+znVyYVq5SzgCHh8GD2DYr8D8jF9d4WOOMO8KBdpVKhaR7iPE9U0zFe9NZlZ 3VOQ== 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=kFsML0K4UhmZ2vqdjxibIp6QjkwIq3j2GyflfbZLaAw=; b=tKoJff06cdOB5SJPSCpGfAkaf1ketfA2tT/3aHg0DeEB4upGXt7OiLEg6kdflkmZEo 7EBDxXQnKPqwjCYUAQMwiwNTnFoJ13iMLKxz/KVo7iqKjMssuuUVjrhLeCO3TpETl5mn yWwnArJP/suidPDtOGOtfSINCTSxSuCm+L1LDus0DMKxrHHuKmh7wo9WU8exDJASjRdA 1wpGvaeL1FC+M4EuK7xQkKf5EQNA/x5exFfm7h6Zu/zp2teFH5sYMdQVH3x39oaArEMd zKytOHqYtbazfY+DHRzhrwd/JfdD+7GEn8sKGCd0LMOvjm8YtejxuyXUvk6k3Yn2WDwt 15gQ== X-Gm-Message-State: AOAM532bM/ieF0RbiVtUi+5HmTO39oAWDKASouGNoUAWutoPahGzQzks EnKfJFi8zag1D9TCg0Cj9Tb6pumIenSYQ+cBnw== X-Google-Smtp-Source: ABdhPJygP7MLVAZOlkOAn0t5hO3dRq8onSrciFYGSHflmBAyMGZnH17y7Ltp08ipgC48IYg1bRRRzT8K+dASXkOWEYY= X-Received: by 2002:a05:6512:1156:: with SMTP id m22mr1481749lfg.637.1614338669015; Fri, 26 Feb 2021 03:24:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Feb 2021 12:24:18 +0100 Message-ID: To: Benjamin Morel Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e9f58005bc3b82f3" Subject: Re: [PHP-DEV] [RFC] Namespaced in bundled extensions From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000e9f58005bc3b82f3 Content-Type: text/plain; charset="UTF-8" On Fri, Feb 26, 2021 at 12:18 PM Benjamin Morel wrote: > Thank you for this RFC, Nikita. This is a necessary first step in the right > direction. > > Even though this is out of scope for this RFC, I hope that moving standard > functions to namespaces will be an opportunity to fix inconsistencies in > parameter order, like: > > array_map($callback, array) > array_filter($array, $callback) > > and not just an alias under a namespace! > 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 --000000000000e9f58005bc3b82f3--