Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111057 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65057 invoked from network); 17 Jul 2020 04:56:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jul 2020 04:56:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6E6FE1804B3 for ; Thu, 16 Jul 2020 20:50:02 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-f45.google.com (mail-io1-f45.google.com [209.85.166.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 ; Thu, 16 Jul 2020 20:50:01 -0700 (PDT) Received: by mail-io1-f45.google.com with SMTP id q74so9069984iod.1 for ; Thu, 16 Jul 2020 20:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pcw+PqUsJcbY3LbsH6f8anmYJEKkWho2u1H67NAY1Mg=; b=FbaxOYf23zs3ploYFDJY2ZtpmxBeiJ600o2WsiDef8YWWnjP5kIIpLJY01ne8sp/ab DXTgLb4ONrInmJi+fucQ63WUsIjrrdFiMHhH+F0f8kD+8DQp32gPRSuBDlsd9XZVDVIi /CUHIcrT8OPd8JfEGTywX6iRcFiRzPaOPhHLs= 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=pcw+PqUsJcbY3LbsH6f8anmYJEKkWho2u1H67NAY1Mg=; b=dbBiyyPzrOEbmsESy3M2laahSpN+pWh2NWBa9WJUyX56McRB+Ql5ZHfVCyINkuiRvN V3HApg5zzD7yjG6IaRV6gOwbzcB2xfrV22FPpjA2ORLIteVQ7JTQ4Md9yqVhVa9q2AL6 w9PFg7shJapRg6Ulsjd1lN5w/vtqV8dwHDDuvyYdGdxjOX1gbE+Vbzu1cuDFOOqw5ztQ C3v2WKJttyhK7GquaxndcGnqA73Vnt0CKWC97mJ46I4hjYEEaV24cFsCpjYt/autPQlr Na6Y0uxFylYzM90vYcmNKRYrK1iUIxo5Z//nztTKzbRT857kqHU+imCd+OO6mIrwkDtN TcoA== X-Gm-Message-State: AOAM531KI9o7reN2u1nFHKYReoyfe8i/o+VHND+D6VgQnqOnAFDvaBvB ZPjh7fIzo9nddQQ1rPFlugojmVfwrzIWArHjFTCFsqMK X-Google-Smtp-Source: ABdhPJzYFLhtvv9aAIuSJc79lHYj1jy8GY6g3RPYOES23phw7i98TMOtre5xqfohkNHUMZkYYXn4XWAe6F4sy2VJD3E= X-Received: by 2002:a92:c792:: with SMTP id c18mr8105205ilk.223.1594957798968; Thu, 16 Jul 2020 20:49:58 -0700 (PDT) MIME-Version: 1.0 References: <0771c3ac-53ec-4a7f-a4e9-6ae3c9b1f1f6@www.fastmail.com> <49fd7972-8cec-4207-99af-6c77c2328211@www.fastmail.com> <02b8e816-1f75-48b4-9614-cec236f6bcec@www.fastmail.com> <5f111b07.1c69fb81.85d87.548dSMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5f111b07.1c69fb81.85d87.548dSMTPIN_ADDED_MISSING@mx.google.com> Reply-To: Levi Morrison Date: Thu, 16 Jul 2020 21:49:48 -0600 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics From: internals@lists.php.net ("Levi Morrison via internals") On Thu, Jul 16, 2020 at 9:29 PM Mark Randall wrote: > > On 17/07/2020 02:58, Levi Morrison via internals wrote: > > 2. I don't think this is solving any problems, really: > > - Code can move from PHP land to an extension and back again. > > Should the namespace change just because it moved one way or the > > other? I vote no. > > This is not what the RFC proposes. The point of \Ext is that there would > be no need to rename them when moving in or out of core. This is not quite the same. I said it moves from _userland_ aka PHP code, to an _extension_ aka C code. I oppose `Ext` in both case. > > I'm strongly in the "make namespace short and flat" camp. Deeply > > nested namespaces make more sense when you need to distinguish between > > projects within a company, for a contrived example > > `Amazon\WebServices\SDK`. I can see there being multiple projects with > > Amazon, and I can see there being multiple WebServices projects. > > Removing a namespace segment doesn't make a lot of sense either, > > except for perhaps collapsing the first two to `AWS` but this is just > > another point to my short and flat camp. This deeply nested company > > organization is not the territory we are in as a project, so we should > > keep it simple and keep our namespace short and simple. > > How flat would you want it to be? This RFC proposes 1 level before the > name of the feature, either PHP or Ext depending on its location. The > purpose of that one level is to avoid extensions trampling into multiple > userspace naming areas. There is no need to separate between _extensions_ and _userland_ code. I believe this very premise is flawed. I don't care to debate it. I will just vote no.