Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79889 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64243 invoked from network); 23 Dec 2014 18:34:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2014 18:34:07 -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.214.176 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:51503] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/00-63255-E95B9945 for ; Tue, 23 Dec 2014 13:34:06 -0500 Received: by mail-ob0-f176.google.com with SMTP id vb8so26446397obc.7 for ; Tue, 23 Dec 2014 10:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CMbFXDHQNSwg4SjHDaOO2SW+tA6SjItXleaI1ApitRY=; b=ENgmbn7uEDscP5aqNBAUIDllt2WUsPwrIHiYvfg/gKTvW2l7wcOPHXD6D4vw2MNHyA q4H+7McKG4wNfTjEzpK4+d2fQOsV4zzLadLQK7kT2OG0wQAGjhZBd7g4XKob2c8OhswG ZEriuZyDs50cBmnrD+hOLjrRa0W6yUsUYCEEnQL2ZdgAon58JFLDlBYb6CCJLz7AMWru 3zmXCYDd3kBIMJLaFtCD6lk+TYq0KsH9vSthFarrF+SpzXyvYmxvVflecFjrb7KC1yC4 JNTUZLN/dbO+rq+eASAJu+Qw+xVnGDI/4xJxCI/Cg11WiTwHJ+QUbGGv6T/oA8CZkzAj wHVQ== X-Received: by 10.182.247.99 with SMTP id yd3mr17408422obc.24.1419359642933; Tue, 23 Dec 2014 10:34:02 -0800 (PST) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id mv15sm10847233obb.13.2014.12.23.10.34.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 10:34:02 -0800 (PST) Message-ID: <5499B598.8070000@gmail.com> Date: Tue, 23 Dec 2014 10:34:00 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Robert Stoll , 'Leigh' , guilhermeblanco@gmail.com CC: 'PHP internals' References: <001e01d01e97$143188f0$3c949ad0$@tutteli.ch> In-Reply-To: <001e01d01e97$143188f0$3c949ad0$@tutteli.ch> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: AW: [PHP-DEV] [RFC] Package private class From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > > namespace ch.tutteli.foo{ public for ch.tutteli.bar, ch.tsphp* > private class Foo{} } This looks like a recipe for totally unmaintainable situation, where each class has its own list of places where it is visible, and the lists are different for each class. I can kind of get when the people want a class that is not visible to other code. But if it's not the situation, just use regular class. I don't think PHP needs arcane rules of class visibility that will be used by 0.001% of users and even those would probably use it wrong since there's no way to keep all those individual lists in sync. -- Stas Malyshev smalyshev@gmail.com