Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68777 invoked from network); 13 Aug 2016 19:20:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2016 19:20:10 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.51 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:36820] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/15-36656-8E27FA75 for ; Sat, 13 Aug 2016 15:20:09 -0400 Received: by mail-pa0-f51.google.com with SMTP id pp5so5511304pac.3 for ; Sat, 13 Aug 2016 12:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=1HlhQ6iA7fJpgB7CdrShIuwhK0Q4fzHox0q0aCK4yZg=; b=07ej4tpmRPRkL+VQ/b73MVNMbdjf4rEPv4cfiFhx2sTkWRYyZcKYJ3Xi9xfU2yaiTQ 6n52PygF4F6CmfdgubP6fUIHfdEqxLGM8sdd7cCsSVEQTj9Juu/qRVTeZ07TjevhKTWw 6PE9/LEjvncXpXCoJBlizR6/aShyjbAE5r617H4DpOLeUixSbifF8bNs8ET9pBwq7uog iXYEy0Q/oEF0fXUWJcY6lUdoQjoDv6wMP0juA2POVekJl3Ih1qyTl4MhzCrhGUN+KDp3 Mugmc0+o3J6BOjTQC+8Cgn4QFpAukphuaTDWBVhFgsE+fvaVBEp7CTYi2VpFbBGpGrYY TH8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=1HlhQ6iA7fJpgB7CdrShIuwhK0Q4fzHox0q0aCK4yZg=; b=ZU0/BRzHwACpmzeo295F/i7vLkQL7C7FYIMR0SvLc3UjmNFwcXu6a3RlYN1yq2e+3W sAxQGrYhiLgAMuhNFYyt/HwTEuCVTbvGVRrAlPkRqaYKQcLQQLp4y188BLokslVQP7Em +YWOAFbWFQ9twCJnhiiQwYI302xCKsJiIM1eOLfw6EhWL5iMSPtYY05rScLGqrpTIu7I 6s7wm+zCHshU6+XceRdmXlRLiFMUWFp6gGWIdUdJe+/UEJR/7Isrb5RH0tvOrFPIb5es m1yJeyzUIFq2Ay4gjxkZtpurk2Cp6sa7NI3RegYKxGrbVa/X+7fAvVq+u/dE4bLg8bc5 u0Nw== X-Gm-Message-State: AEkooutlmjEU8COKIYo15AP1z4waNg2oz/AMjg2O2d3viDV0DqIKg2Tw2h3M78LjvJm6zQ== X-Received: by 10.66.219.200 with SMTP id pq8mr17202205pac.75.1471116005812; Sat, 13 Aug 2016 12:20:05 -0700 (PDT) Received: from Stas-Air.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id o8sm22121994pav.5.2016.08.13.12.20.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Aug 2016 12:20:05 -0700 (PDT) To: internals@lists.php.net, Julien Pauli , =?UTF-8?Q?Micha=c5=82_Brzuchalski?= References: Message-ID: <11f9c899-77b4-da50-f0f7-dc2d16b1829c@gmail.com> Date: Sat, 13 Aug 2016 12:20:03 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Namespaces internal refactoring From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The current approach to namespaces blocks new features like you see it > in the following PR. The link already points to the two most relevant > comments that should give you full context: > > https://github.com/php/php-src/pull/947/#issuecomment-224912697 I don't think this - private classes, etc. - is a good idea. It looks like Javaization of the language and introducing more and more complexity without any clear benefit, and AFAIK none of the mainstream scripting languages have such concept. Anyway, this doesn't even have an RFC, so I don't see why we should refactor everything to accommodate it. But it is certainly does not fit the concept of namespaces. It needs completely different packages concept - one that currently does not exist on PHP. Trying to bolt it on existing concept is not going to do any good. I think this is what it should start with - developing a good concept, not trying to go from code modification to design. Design should come first, then code modification. > You might know other approaches to solve this. What I want to say is, we > should not re-discuss everything that was discussed before, we should > discuss the proposed features and refactor the namespaces IF it is required. Indeed. -- Stas Malyshev smalyshev@gmail.com