Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110892 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79227 invoked from network); 9 Jul 2020 13:04:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jul 2020 13:04:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 36D1E180509 for ; Thu, 9 Jul 2020 04:56:09 -0700 (PDT) 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-Virus: No X-Envelope-From: Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (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 ; Thu, 9 Jul 2020 04:56:08 -0700 (PDT) Received: by mail-io1-f52.google.com with SMTP id c16so1966384ioi.9 for ; Thu, 09 Jul 2020 04:56:08 -0700 (PDT) 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; bh=KzefbckwynV/8zn+cp4H9AGbgNkfumrJQU7kIMa7Otg=; b=I80s3sFPOX6mPAryHJE7iDCSVdLkhoEVqdVpQogLFlst5Ziv4NBLfBbIdX1Nf1L0x0 FN//r9fVVxb8aPjCj/hyYnGNWLvZcaLJBV8zBrHRJpb31oQ9Av7WwRV645gTypDvlGK/ 6dQYpEilEsjgSsPnoT0NsnnPVlwfw2Xq59M2a69QRH4423gK0BZabmFjgKGEGK6KgZaF wEWFimQKrq+TzScRJbzKBcYBPbqhOcIWqyFaIVEDkbE2od/PFRjjplxXcvsp3tlq8Ghz 7KkoUm19FJP5vyFjCznCm6UfPVfgJTqIM0M50nUu0+tMfCzqyFPB2CAonm1sIBFDHUl1 1BXQ== 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; bh=KzefbckwynV/8zn+cp4H9AGbgNkfumrJQU7kIMa7Otg=; b=rTZvOhMbgj68BIJG1XLFWr8FuZN01id16ZQ4HKNmSBxvooemrWBtBC7szf+2c0uMHs Xklbgl/m8oWuZxQiG04QleK6ufe8eh1KolwFR9CvnNvuXiQImuwVMDrSD5Su3zHJcQ7V CNfP82wX+O/xUQjnS+ltQRuKK5iotfIRMpWTQO8Hz3Yyo22UOriF2Zw/9UvEiASOWiv1 c42PUSlF+RxuApBaDdL4Km0CO8mnDikAOTgsk9d4wWrzGS+FF7IDvxUkCis0TMqds0+A 2M/lIlysQyn0ir11p3zFft871HloyrBm/HSdzl57PhT65+S/ws/LGvlPKrff11BzuVVE 9wlQ== X-Gm-Message-State: AOAM531t1uGi1J8RHALgjkasQiMgwPYu7xse2xr9QRLzIZMMEi6nvkb9 mB+edNg34fKrOLYDNGm9oHCqjNelV9zTbaT2dqjITw== X-Google-Smtp-Source: ABdhPJyC3LPsn9vEAcvkLGRF4KmNHfCMPCFv+gdRXVQSCYfyo8jt6LHCHnGa7eqKYhk3e/OkUqhDDbJzg/GI403C6eE= X-Received: by 2002:a05:6638:dd3:: with SMTP id m19mr73440778jaj.106.1594295767999; Thu, 09 Jul 2020 04:56:07 -0700 (PDT) MIME-Version: 1.0 References: <0771c3ac-53ec-4a7f-a4e9-6ae3c9b1f1f6@www.fastmail.com> <49fd7972-8cec-4207-99af-6c77c2328211@www.fastmail.com> In-Reply-To: Date: Thu, 9 Jul 2020 12:55:56 +0100 Message-ID: To: php internals Content-Type: multipart/alternative; boundary="000000000000eb2c2d05aa00e8a9" Subject: Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics From: rowan.collins@gmail.com (Rowan Tommins) --000000000000eb2c2d05aa00e8a9 Content-Type: text/plain; charset="UTF-8" On Thu, 9 Jul 2020 at 09:58, Dan Ackroyd wrote: > On Tue, 7 Jul 2020 at 15:47, Larry Garfield > wrote: > > > > This has reached the 2 week mark, but there's not been much discussion. > > Unless I'm having a massive reading failure, this RFC has been > announced twice. And feedback was provided before: > > https://externals.io/message/109646#109647 > https://externals.io/message/109646#109648 It seems that, although still labelled version 1, the RFC has been substantially rewritten since that discussion. > From the RFC: > > Every new global class, however, creates a potential namespace collision > > with existing user-space code and thus a potential for backward > > compatibility breaks. > > This doesn't appear to be an actual problem for the PHP ecosystem. > > The vast majority of code in libraries is in namespaces, which avoids > there being a problem that needs addressing. > And yet we have repeatedly had discussions about whether this or that feature should or shouldn't be prefixed with a namespace. If you think the correct answer to "when should we use the PHP\ prefix?" is "never", I urge you to put forward an RFC making that the policy. > Rather than having more rules (quite a few of which I don't agree > with), time and effort would be better spent on reviewing code and > using features before releases e.g. to avoid situations like the FFI > api being difficult to use. > This is pure whataboutery; the idea that reading a few naming conventions will be such a burden that somebody would have no time to review a feature is frankly ridiculous. Nor will the lack of a naming convention mean that no time needs to be spent naming things - quite the contrary, it will mean more time is wasted debating every case. It's worth stressing that naming conventions are not new - we've had them for global functions for many many years. We may talk about "putting things into namespaces", but PHP's namespaces really are just names, so this RFC could easily be called "update naming conventions for classes". Regards, -- Rowan Tommins [IMSoP] --000000000000eb2c2d05aa00e8a9--