Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89638 invoked by uid 1010); 16 May 2006 23:08:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89623 invoked from network); 16 May 2006 23:08:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2006 23:08:07 -0000 X-Host-Fingerprint: 217.162.171.242 217-162-171-242.dclient.hispeed.ch Received: from ([217.162.171.242:12811] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 63/87-19568-65B5A644 for ; Tue, 16 May 2006 19:08:06 -0400 To: internals@lists.php.net,Marcus Boerger Message-ID: <446A5B52.9060001@cschneid.com> Date: Wed, 17 May 2006 01:08:02 +0200 User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 References: <785810036.20060511193536@ionzoft.com> <44647B7A.2070301@php.net> <932738738.20060513112734@marcus-boerger.de> <837405862.20060513223403@ionzoft.com> <36828701.20060514110529@marcus-boerger.de> <31269879.20060514221212@marcus-boerger.de> <1327845846.20060514222154@marcus-boerger.de> <1562034641.20060516203354@marcus-boerger.de> <7.0.1.0.2.20060516235201.090f10a8@zend.com> <7.0.1.0.2.20060516142654.02c78380@zend.com> <596643859.20060516233753@marcus-boerger.de> <7.0.1.0.2.20060516144030.039abe98@zend.com> <1531743211.20060516234945@marcus-boerger.de> <1014418169.20060516181322@ionzoft.com> <1677590447.20060517002135@marcus-boerger.de> In-Reply-To: <1677590447.20060517002135@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 217.162.171.242 Subject: Re: [PHP-DEV] private, protected, readonly, public From: cschneid@cschneid.com (Christian Schneider) Marcus Boerger wrote: > i changed from readonly to readable, which means the new keyword makes it > public for any read access, that is: So much for "readable" being obvious (i.e. you have to explain it). > private readable $abc; > - class itself can read and write > - public for everybody when reading, inside & outside of the class > > protected readable $abc; > - class itself can read and write > - sub-class can read and write > - public for everybody when reading, inside & outside of the class > > public readable $abc; > - just as public alone Does anyone apart from me wonder why we need to bloat the language for an obscure feature like this? Please take a step back, take a deep breath, count to 10 and that's *really* what the PHP community has been waiting for. Please don't extend PHP until it accepts something like final static private readable $x; because it could turn your brain into guacamole if you have to read code like that ;-) PS: If anyone wants me to write a patch or test for "readable": No problem, I can write a patch disallowing "readable" quite quickly and I'd even sit down to write a test failing if readable is allowed in declarations (-:C - Chris