Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80855 invoked from network); 16 Jul 2012 13:11:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 13:11:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:51675] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/B0-11081-E1314005 for ; Mon, 16 Jul 2012 09:11:58 -0400 Received: by lbgc1 with SMTP id c1so8401103lbg.29 for ; Mon, 16 Jul 2012 06:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lKWRvoTVZTVfnwCXeIuhi1Tl7yfSRdKPKZ2240a4ePY=; b=pS9BpAVflgUM7UyPzialzTzaZ+WElJ2BHoDa5pHoFZKrQLGmb5Cg5Ypee4n+ttG2r/ OsiX0jIR6VzrliM3VSTzntFPPLopJaqyux/jqo0Fj4BkRlr+acdpiUfgbqFGPHV2ygef 2RcQ+EOQ9uarwUbSinQZb5ObGb0uEe/VLuO9p3PC0JdKNmlPH7+ERTNGfLoufi+1rKqR WM3DYWvDvt8f3z/wfXPy3kJbLdUD5r+WA03Vbj0HGfyYsPSz5HgFgLauhrLVi2LyMx8u See5F5IDknk7QVnGd5QXnBOIIQSfpdLgOdj4Bza6+PM4AfMrYTCTU1628L5uddDA5lFn OfAg== MIME-Version: 1.0 Received: by 10.112.49.68 with SMTP id s4mr5292547lbn.27.1342444315467; Mon, 16 Jul 2012 06:11:55 -0700 (PDT) Received: by 10.152.114.70 with HTTP; Mon, 16 Jul 2012 06:11:55 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jul 2012 15:11:55 +0200 Message-ID: To: Amaury Bouchard Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC Proposal - Attributes read/write visibility From: nikita.ppv@gmail.com (Nikita Popov) On Sun, Jul 15, 2012 at 5:46 PM, Amaury Bouchard wrote: > Hi, > > Here is an RFC proposal about a syntax extension for PHP. The purpose is to > manage precisely the visbiliy of attributes, by separating reading and > writing access. > > First of all, I know there is already an RFC about attributes ("Property > get/set syntax" [1]). Its goal is mainly different, but I'll discuss it > lower. I'm not sure I really understand what this adds over the existing getter/setter proposal. read-only and write-only should cover the most common cases. If you do need visibility control, it is possible too: public $property { get { ... } protected set { ... } } So what does this proposal add to it? Nikita