Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84663 invoked from network); 16 Jul 2012 13:20:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 13:20:36 -0000 Authentication-Results: pb1.pair.com header.from=ajfweb@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajfweb@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: ajfweb@googlemail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:39928] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/91-11081-32514005 for ; Mon, 16 Jul 2012 09:20:35 -0400 Received: by wgx1 with SMTP id 1so1049310wgx.11 for ; Mon, 16 Jul 2012 06:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=bbK6vW/OYIr/BsAjwXgI5uTKI6velqI2mdNFLJtP0cE=; b=UeV4515nIj2Mivoaiy0vkqMuERVohOAWfahKZi7mW8wTojcd1OSVFSnpTEA/AQdUk1 7eqW8n7SHlOjPvp3DxOmYdxxH5SPH5H2xiuRTaSVi0qwN+xvSk7tWhe8zR5nq99f/pKq dRrnNR2r3+xJX/yxzG0bZTqZzP+DYy4LbIMeNxKGxyz8lY9AbdNu0+m6ZJHzH5FjkXyc 68ElLnD6K90IWSimIiA0i30/LLgPljFShZWqUl4xcug9gH/Ac51gXeJgHVQ+caqSABBP jjFDuIlxaoDWKHY+tfnFjXwd369f1HKwzh8uM/ijJr1XTfeI+JErjdknbRYtVO4B/nf0 WYNA== Received: by 10.216.240.196 with SMTP id e46mr4194736wer.224.1342444825577; Mon, 16 Jul 2012 06:20:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.71.199 with HTTP; Mon, 16 Jul 2012 06:20:05 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jul 2012 14:20:05 +0100 Message-ID: To: Nikita Popov Cc: Amaury Bouchard , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC Proposal - Attributes read/write visibility From: ajfweb@googlemail.com (Andrew Faulds) An ugly, confusion-causing syntax. On 16 July 2012 14:11, Nikita Popov wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Andrew Faulds (AJF) http://ajf.me/