Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113281 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16213 invoked from network); 26 Feb 2021 11:28:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Feb 2021 11:28:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 054021804E1 for ; Fri, 26 Feb 2021 03:18:13 -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-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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:18:12 -0800 (PST) Received: by mail-ot1-f45.google.com with SMTP id s3so8733057otg.5 for ; Fri, 26 Feb 2021 03:18:12 -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=IpRWS1o41AIV84qm2YmdeTH5evE+sQlGy2bg0RIvIoQ=; b=DKTbEWeTz3hTpM0MDOewXoPFEDCJ8j/JeawaRd/JJ+hbyGy2Dif7TWW4LQO63kWUPV LieAB2zAgpFwAc40HTI/sJugz8jvtuarJpYOLVbGZqTjBddsJrDCLyWUbWD6jH69zXAl oIS4CkChuYuaYcW9qrPgHA1STTcj18S+PXjg0jAS1wTstmlcZJhivbT1LmPztI7BSWWI 1IGTxfIkn6tfWWwp9OTPREtugP3vRQcpJn0zltR5vM5JHOYJKKWLvBbb+MiFpDq0G+0H Txl7V/SRjK5BRznGxWevmDZ/mONiPJetyoj+C4WCwgIIFINdInRPU5tu7zQdSoGgjPez rPTQ== 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=IpRWS1o41AIV84qm2YmdeTH5evE+sQlGy2bg0RIvIoQ=; b=dme6UrA189t1uieAqvC7jbpQm72nqkz2cNlRTMspKJz6R9XtAuK504jj+E12w/UaQo uQgmRxfxnPEAOurCQq42NODE2VPnL/ew6e+nqOapMUGw5NEPHVT1LmROcKQiJ41b5zRs G9O/MnA+BCPppsUEJOy9yrTGpSxQFSKSsi0Je7X64iMZKTFZKtHg4RSsqtggr8Zk4eqX dp0RhTvsyJaodTAlrfBCl6ZrI00X0Dt0yVWepxkoYXvIy5pc4W9id1A6lCk5V/5YQcXS 7spfc0Jwlj2zFRtFYlBaDYAKtzXsTlD2cMZPfQlOZSRNFWpp/uuG21b/Mn5afEerbwm7 LsfQ== X-Gm-Message-State: AOAM530+bwt1Y2xVrLaECFuVeX4xk7yZjTPYm1lcsi4xLNi+DH3Cj7eQ iSWYg4RENQeohykKA4jNDaMgozktHFy5wm/T+1/WTSA8O309Ng== X-Google-Smtp-Source: ABdhPJyWTmyE1+QWX/TlTuBieun8HQKTdOz4AhA8zlC3r3uXf51uh0crJ3bK+E5vcIRaOhV6U6XIFhXPZbQNhw/uPU8= X-Received: by 2002:a9d:6742:: with SMTP id w2mr1790566otm.358.1614338291326; Fri, 26 Feb 2021 03:18:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Feb 2021 12:17:59 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000066e48b05bc3b6c63" Subject: Re: [PHP-DEV] [RFC] Namespaced in bundled extensions From: benjamin.morel@gmail.com (Benjamin Morel) --00000000000066e48b05bc3b6c63 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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! =E2=80=94 Benjamin On Thu, 25 Feb 2021 at 21:26, Nikita Popov wrote: > Hi internals, > > The question of namespaces in the stdlib has been coming up a lot recentl= y, > so I'd like to present my own stab at resolving this question: > > https://wiki.php.net/rfc/namespaces_in_bundled_extensions > > Relative to a number of previous (declined) proposals, the main differenc= e > is that I do not propose a top-level "PHP\" vendor namespace, and instead > recommend the use of "ExtName\", in line with existing practice for > extensions. I believe this addresses the primary concern with previous > proposals. > > Regards, > Nikita > --00000000000066e48b05bc3b6c63--