Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78295 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70189 invoked from network); 24 Oct 2014 08:41:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2014 08:41:46 -0000 Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:34989] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/21-62277-7C01A445 for ; Fri, 24 Oct 2014 04:41:44 -0400 Received: (qmail 13947 invoked by uid 1009); 24 Oct 2014 10:41:40 +0200 Received: from 209.85.213.54 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/19529. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.213.54):. Processed in 0.105419 secs); 24 Oct 2014 08:41:40 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.213.54):. Processed in 0.105419 secs Process 13941) Received: from mail-yh0-f54.google.com (gmail@bof.de@209.85.213.54) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 24 Oct 2014 10:41:40 +0200 Received: by mail-yh0-f54.google.com with SMTP id 29so3832218yhl.41 for ; Fri, 24 Oct 2014 01:41:38 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.170.65.131 with SMTP id h125mr4152121ykh.68.1414140098268; Fri, 24 Oct 2014 01:41:38 -0700 (PDT) Received: by 10.140.43.68 with HTTP; Fri, 24 Oct 2014 01:41:38 -0700 (PDT) Received: by 10.140.43.68 with HTTP; Fri, 24 Oct 2014 01:41:38 -0700 (PDT) In-Reply-To: <6E04B9BE-854E-4112-8C74-7D90BD8BFE95@ajf.me> References: <6E04B9BE-854E-4112-8C74-7D90BD8BFE95@ajf.me> Date: Fri, 24 Oct 2014 10:41:38 +0200 Message-ID: To: Andrea Faulds Cc: internals Content-Type: multipart/alternative; boundary=001a11397fa838557d050627263e Subject: Re: [PHP-DEV] [RFC] Readonly Properties From: php@bof.de (Patrick Schaaf) --001a11397fa838557d050627263e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 24.10.2014 01:36 schrieb "Andrea Faulds" : > > Here=E2=80=99s another RFC: https://wiki.php.net/rfc/readonly_properties +1 for the general feature, I'd love to have that available. I have an idea regarding the additional keyword, with a small implication (improvement) to the functionality provided, but at the cost of being slightly quirky :) The idea is: public $foo as private; public $bar as protected; protected $baz as private; where the "as X" gives the writability scope. This introduces no new keywords, and is currently not valid syntax, as far as I can see. best regards Patrick --001a11397fa838557d050627263e--