Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78286 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44498 invoked from network); 24 Oct 2014 03:02:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2014 03:02:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.49 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.213.49 mail-yh0-f49.google.com Received: from [209.85.213.49] ([209.85.213.49:37873] helo=mail-yh0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/03-24679-061C9445 for ; Thu, 23 Oct 2014 23:02:58 -0400 Received: by mail-yh0-f49.google.com with SMTP id a41so2149801yho.36 for ; Thu, 23 Oct 2014 20:02:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=up8Nonxpd/APjH5S2azxykqRqtwRQUynCIebNU1zo1A=; b=ZzfkSZ4rGvEZKzjRmV8e7eBKqsPOhudHs7FxFe6xOPf6Io6y5tSNwMtKabEbXzjN7h 3XHf/rjXpsJdV5HCth20PiUX4ZOqZ8EzMqhIgOBH8J6iSyNsh4dEZX7dyPaMLafVYMgc MsS4XzaejqafrE06uj153oYl77p/k/v4UBb6e8wAuIWI5wsuNrZpXq1c8y7EKI2hJalu yFiiLwDVbvE7T2d/n/C7qw+sc7KM6GqMQtQcT1eHiavsRMV/PnltRHThXNsQlmbuEgSQ KF/mFTQzslgP11QUFccK0gj9rT+pSMJlVXi3YYBRxvx4IDJxzxqKIv1GQUdxkIuBd6mk K0KQ== X-Gm-Message-State: ALoCoQnpfrGWcWuCvX3asHj3FIScDYscEKEbg19ABllX49BmHbKWTdGfnausk3XXUU0ZyERxWhhI0XFCMfQuhdrRS9ZK706boSHwSEZylrcozj4NN7GoUlPucN6KXeMODn11naLM39y8DLqWn83eSuIlJA1bBMi+tA== X-Received: by 10.170.85.5 with SMTP id c5mr1849496yka.4.1414119773595; Thu, 23 Oct 2014 20:02:53 -0700 (PDT) Received: from mail-yh0-f44.google.com (mail-yh0-f44.google.com. [209.85.213.44]) by mx.google.com with ESMTPSA id g22sm1618833yhb.18.2014.10.23.20.02.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Oct 2014 20:02:52 -0700 (PDT) Received: by mail-yh0-f44.google.com with SMTP id i57so2178597yha.17 for ; Thu, 23 Oct 2014 20:02:52 -0700 (PDT) X-Received: by 10.170.41.131 with SMTP id 125mr1850682ykj.7.1414119772510; Thu, 23 Oct 2014 20:02:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.159.141 with HTTP; Thu, 23 Oct 2014 20:02:32 -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 11:02:32 +0800 Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Readonly Properties From: laruence@php.net (Xinchen Hui) Hey: On Fri, Oct 24, 2014 at 7:36 AM, Andrea Faulds wrote: > Good evening once again, > > Here=E2=80=99s another RFC: https://wiki.php.net/rfc/readonly_properties > > It proposes, with a working implementation, a modifier for properties tha= t makes them readable and writeable from different scopes. > > Since I am a big proponent of including specification patches in new RFCs= , I have decided to put my money (or rather, time) where my mouth is and I = have actually written a specification patch before writing an RFC. I would = love to see this become the new standard for RFCs affecting the language. > > If you are curious at all about the behaviour, I suggest perusing the fai= rly comprehensive set of twelve tests included in the main patch to php-src= . > > Thanks! Hey: -1 on this. Actually, your example for explaining usage.. I don't see why it is must, add a getSize() will also meet the needs, and more beatiful, as you can change $size to another name if you like later. thanks > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Xinchen Hui @Laruence http://www.laruence.com/