Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17318 invoked from network); 16 Jul 2012 15:26:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2012 15:26:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=admacedo@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=admacedo@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: admacedo@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:60703] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/A1-09344-A9234005 for ; Mon, 16 Jul 2012 11:26:19 -0400 Received: by pbbrp12 with SMTP id rp12so11242323pbb.29 for ; Mon, 16 Jul 2012 08:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VLYiqv3qP0hVeWRyXMAUYQdjtbfmulNImOGxM5zYU24=; b=gOhICq8KeOzh/fVe/WMh/SUAC9JKV2tvDoLF862sg1njv1jjVoHFXs0F6qOjrCkyiS QQBTCtmBic54ALvmaTIBLoT+n4bhP+llFXyroiW39Cw00I2SyyNR5qfCDBuJbb8rzsuS K505E3zC5rfTWRe8or/JZ9llw12ejl3QY2rar8gzSmTeEYIt7iRFvEid4VHZs+0/RBVh Jw3lUI9w09iPYgBKQK0Rkv4UWNfkdkAxMe91ZuvjaYcTCnJ2Shba5w+0Khr5PStlTdh3 5GTOBEjVbIwcHcsnA8Jv5qw5k5DUiqwO0iT/cTGIr6ZFrPU50FNLXZOmZ+0azI6pdfsc afNQ== Received: by 10.68.241.66 with SMTP id wg2mr17568490pbc.153.1342452376060; Mon, 16 Jul 2012 08:26:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.56.7 with HTTP; Mon, 16 Jul 2012 08:25:35 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jul 2012 16:25:35 +0100 Message-ID: To: Andrew Faulds Cc: Nikita Popov , Amaury Bouchard , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC Proposal - Attributes read/write visibility From: admacedo@gmail.com (Daniel Macedo) You already have the read-only/write-only option proposed on that RFC - by not defining set and vice-versa for write only - or by inserting new keywords (not sure if this is needed/optimal). And nowhere in PHP do we have the syntax you propose as A:B, and I even recall a short array [a:1, b:2] syntax from being promptly rejected in the past, although I can't recall the argument against it. Plus that RFC can allow for additional implementation of something like a lambda/other function calls; a lot of things way more useful/interesting to see than just controlling visibility.