Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106338 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 24664 invoked from network); 30 Jul 2019 11:23:48 -0000 Received: from unknown (HELO mail-io1-f41.google.com) (209.85.166.41) by pb1.pair.com with SMTP; 30 Jul 2019 11:23:48 -0000 Received: by mail-io1-f41.google.com with SMTP id o9so22713669iom.3 for ; Tue, 30 Jul 2019 01:48:39 -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=OvnbNoeA2Gj/N4YV8l0IaNYF1jhL7IWe8V7SPb5m10o=; b=WI2blUMF7Q8KHYZQqUZYEMCFIc1UWnYm4hYSv3mgo5x8ELtmUY0JbHcELos57I56To vR1K6Hes6mgAzvF76wDJxFV2D1TihH2NWch6RlHHjnKqQ5kC7mV2atden6RetcLUT65A beg8JLXrbJIvwMcTdIEg08jrVddSXuRlGh85/QxjmFh5wfLgVq7twG6iQgfz+UX+v15F oFrGUnACubYyXBtCbhZk1oKpT7G25tKCxTId/+LZ+k6Sy4CGfNt4gsRBVZJ/qTorqrza vHz4UFBZeX+KuLqIYGxBj/RpLyQdkT3brxhnYkmrtuXDk2kEnw2mrTw2fMlx0Emee/2b NlTA== 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=OvnbNoeA2Gj/N4YV8l0IaNYF1jhL7IWe8V7SPb5m10o=; b=kfaaxcURLzrC1GSpqlSWMMa7PQ5ykqpHWQ0w7UsO9JiNzjTYcQMn/OT/rnmR9fDhzf wW2Vc2WJLZNrH6KGwwUo+fPNpsNlTka6FUpdFoQUwxdwpUj6g3PgZPNWFTx/K+yJ3z/V 07rHajkCssbCc5UXbbiGveSz/SF0pFCyRMLyY8vUcx7q9r3Qogce+AyiaIRf/tsCgQ8h ascAhBJvAZM7Xnfdpna1+eIZN2RBJ+EE6MHNww2moPUHm7NlDKvgeEBoC3BOPR/TjL8A +5guDgtQXzZ31wvOn/XFNYhUXiZX2neCaZggcCzq0/SKDZkYtJEVvLMqqkqP3XXxwiVj Ei2Q== X-Gm-Message-State: APjAAAUSyjrJrP5zgkkoV6pahfIwWMqcHMdpkNqyYbpq4QDWzrjnT6mK JEaeP3NXgG1br6dBDlOlEHmh1PMUl2LwQ8GX787H0aF+ X-Google-Smtp-Source: APXvYqxUVKg30SEE38hSOdRTLuAlfj/NAvDjFSbn6cKVUzuHULNSZuh3RH8yzImSmZ8g51VtXoKgMhknv6VNZ7yojkY= X-Received: by 2002:a6b:5b01:: with SMTP id v1mr664060ioh.120.1564476519018; Tue, 30 Jul 2019 01:48:39 -0700 (PDT) MIME-Version: 1.0 References: <9ADC8994-9D3C-4810-A2DB-6FB81D513098@gmail.com> In-Reply-To: Date: Tue, 30 Jul 2019 09:48:26 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000002cf417058ee213f5" Subject: Re: [PHP-DEV] Re: [RFC] Namespace-scoped declares, again From: rowan.collins@gmail.com (Rowan Collins) --0000000000002cf417058ee213f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 30 Jul 2019 at 09:12, Micha=C5=82 Brzuchalski wrote: > 1) Packages should be non-hierarchical. Perhaps most simply a package nam= e >> could have exactly two parts, like in composer, so it's clear that there= is >> no implied relationship between two packages. >> > > IMO this would create a lot of problems cause name in Composer Package > doesn't reflect used namespace declared in autoload > I'm not saying the package name has to match the composer name, just that the format might be similar; and I explicitly left the question open of how package names would relate to namespaces. It might be sensible to align the package/module name with one or other of the existing two naming schemes, but it's certainly not essential; names in Composer are essentially arbitrary anyway, not visible at all at run-time. On Tue, 30 Jul 2019 at 09:20, Lynn wrote: > Would it be an idea to first establish the concept of a package within > PHP, rather than deducting it based off a namespace? If packages would be= a > thing in PHP, other than just a namespace, package private could also be > implemented as visibility modifier for inheritance and class visibility. > I think there's some confusion here, because establishing the concept of a package as separate from a namespace is exactly what I proposed. Here's a previous message (technically in the same thread, but from 18 months ago) where I also mentioned class visibility: https://externals.io/message/101323#101390 Regards, --=20 Rowan Collins [IMSoP] --0000000000002cf417058ee213f5--