Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31740 invoked from network); 20 Oct 2012 10:37:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2012 10:37:37 -0000 Authentication-Results: pb1.pair.com header.from=amaury.bouchard@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=amaury.bouchard@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: amaury.bouchard@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:55491] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/EE-22055-FEE72805 for ; Sat, 20 Oct 2012 06:37:35 -0400 Received: by mail-gg0-f170.google.com with SMTP id q6so246128ggc.29 for ; Sat, 20 Oct 2012 03:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=c73HVZlnr07lOxZkxsfoQJKgwXHhQomA/I+Uzz/V/5w=; b=k202ZO7jGSg9SRtjP85JT51QQzt/SVUzm59mkawIDC/imP0n5a+wyZR9Vhgpb6q5a1 e+mo2pPcx7C50Gf2M0eg5NJ8foOV+8AXxTiwnXNZU/ggWBccfg6INT3XSLzdG4Iwm7Js YI+wWQDW9CfbxLXC77LWUg7GXi39gzP7w9NXuupx9bnjErh1iWAC3lhccihPeDW9+HLw XBEnZfeW9w43JUQrxKQv/K/luGWu/FPhVzbdL+9jIf8rMTWM6kHB0lO4QxULCMAtmWF6 LriRM7KGI0Z9OcdIDIUYIEeuPoKOEMKz2+x0AAhZw5VD6nylEaCkRQLeZ+QtUUwnVxP4 O6Tw== Received: by 10.236.134.18 with SMTP id r18mr3543247yhi.45.1350729452767; Sat, 20 Oct 2012 03:37:32 -0700 (PDT) MIME-Version: 1.0 Sender: amaury.bouchard@gmail.com Received: by 10.147.152.21 with HTTP; Sat, 20 Oct 2012 03:37:12 -0700 (PDT) In-Reply-To: References: <9570D903A3BECE4092E924C2985CE485612C2595@MBX214.domain.local> Date: Sat, 20 Oct 2012 12:37:12 +0200 X-Google-Sender-Auth: 8gtCdP9Ytnq1HJ0h6Z3RlUn_jr4 Message-ID: To: Nikita Popov Cc: Clint Priest , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=20cf303a360b38489a04cc7b35ca Subject: Re: [PHP-DEV] [RFC] Accessors : read-only / write-only keywords From: amaury@amaury.net (Amaury Bouchard) --20cf303a360b38489a04cc7b35ca Content-Type: text/plain; charset=ISO-8859-1 2012/10/20 Nikita Popov > Could you maybe explain where exactly "const" would be used? > Well "const" and "read-only" have the exact same meaning. You can replace one by the other. So why create a new keyword? > Please > don't forget that we do not use your "foo:bar" syntax, so where would > the "const" go with the currently used syntax? > Don't be rude. It's not a "foo:bar" syntax sent no matter how on this mailing-list. It was an argumented RFC proposal, with an associated patch (but yeah, who cares?). If you want to give it a silly nickname, I'd prefer "public:private". :-) The RFC was: public read-only $a { get { return $this->_a; } } It could be: public const $a { get { return $this->_a; } } Is it so different that it needs a new keyword? --20cf303a360b38489a04cc7b35ca--