Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106321 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 16983 invoked from network); 29 Jul 2019 14:36:45 -0000 Received: from unknown (HELO poczta.brzuchalski.com) (188.165.245.118) by pb1.pair.com with SMTP; 29 Jul 2019 14:36:45 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by poczta.brzuchalski.com (Postfix) with ESMTP id 6689D298423C for ; Mon, 29 Jul 2019 14:01:22 +0200 (CEST) Received: from poczta.brzuchalski.com ([127.0.0.1]) by localhost (poczta.brzuchalski.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kvUQmn9p6AX4 for ; Mon, 29 Jul 2019 14:01:16 +0200 (CEST) Received: from mail-oi1-f179.google.com (unknown [209.85.167.179]) by poczta.brzuchalski.com (Postfix) with ESMTPSA id AD7AD298423B for ; Mon, 29 Jul 2019 14:01:16 +0200 (CEST) Received: by mail-oi1-f179.google.com with SMTP id q4so15863961oij.3 for ; Mon, 29 Jul 2019 05:01:16 -0700 (PDT) X-Gm-Message-State: APjAAAVLmT7e3uKs7SkKcb9u56d40vHBaBIsbn4FY0RrdcI4V/7HHu1y HAXvb+4r+o6s1Pp4bLB3Cr/nRbPIFJypPeBSeCA= X-Google-Smtp-Source: APXvYqxZmo4S/Jh0m2aNsFS9qOKzHajn7LuBahEgW3fOXhz9umLWClA0LqRJPkjb+deX2NeUzv9ctj94OXN0y+oMAgQ= X-Received: by 2002:aca:4853:: with SMTP id v80mr52963447oia.78.1564394607826; Mon, 29 Jul 2019 03:03:27 -0700 (PDT) MIME-Version: 1.0 References: <0143be10-1dff-58dc-818b-23e76345406f@gmail.com> In-Reply-To: <0143be10-1dff-58dc-818b-23e76345406f@gmail.com> Date: Mon, 29 Jul 2019 12:03:16 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000e35dfa058ecf00d9" Subject: Re: [PHP-DEV] Re: [RFC] Namespace-scoped declares, again From: michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --000000000000e35dfa058ecf00d9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, niedz., 28 lip 2019 o 05:17 Stanislav Malyshev napisa=C5=82(a): > > Based on the received feedback, I plan to change this proposal from bei= ng > > "namespace-scoped" to being "directory-scoped" instead. This should bot= h > > I don't think it improves much, in my opinion, and it also introduces > hard dependency in the language on specific placing of files and > directories - i.e. if you move file on the filesystem, it can actually > work differently, which was never the case before. Having concepts like > filenames change the core functionality of the language looks to me like > an example of leaky abstraction and a hack which may solve a particular > problem now but at the cost of making the whole design more messy and > introducing more problems in the future. > IMHO it would be impossible to find out what are the boundaries of namespace scope or package scope (whatever you call that) symbols without a root namespace file. I can imagine some can use explicit require to load library class to skip scoped declares, autoloads or whatever lands there. --=20 regards / pozdrawiam, -- Micha=C5=82 Brzuchalski about.me/brzuchal brzuchalski.com --000000000000e35dfa058ecf00d9--