Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63337 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12647 invoked from network); 11 Oct 2012 05:04:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Oct 2012 05:04:51 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:34257] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/11-04101-27356705 for ; Thu, 11 Oct 2012 01:04:50 -0400 Received: by mail-ie0-f170.google.com with SMTP id c12so2688944ieb.29 for ; Wed, 10 Oct 2012 22:04:48 -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=26WRgBmVHc0e7bkcdt4fEVk+yC3wRSyuhD+Lj38ORhc=; b=zU+hXx65YM0sKH9k0bqrbrp0pviTGNXjX1BsQ6CqA3xIvgHPHjST8Fhs++zAUX28lk 7AL0Tz9yL4gsHj5Pmbr1HfxzjUMmJ3TMmXRdFXPPtC/uttPClLFqKnL40Rqh6G7ABAeW YEI2Z1Uw4n8iffJ/2ROXEWj2pdT7OH1V7eY5uYvJKy1C140rSkjdoHVx8JE/vDhb5070 dhKkO2YjHeTS/C+RGURQj4WkPeIk0N9OHG3GeJAKIANJYTvRTfdHLlgUnLr4pDfsJ5D0 39/S0uXB+c6jytd3ESWc5qN94b4CqtZixCgTPYiv+6XE12LAGBlZctNEm6bpwM09VGzn lAxw== MIME-Version: 1.0 Received: by 10.50.100.137 with SMTP id ey9mr7582108igb.57.1349931888158; Wed, 10 Oct 2012 22:04:48 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Wed, 10 Oct 2012 22:04:47 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Wed, 10 Oct 2012 22:04:47 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE485612B4F63@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485612B3B48@MBX202.domain.local> <5073328D.5000002@gmail.com> <50735165.8010703@aaronholmes.net> <9570D903A3BECE4092E924C2985CE485612B4353@MBX202.domain.local> <760ab4f994a78a846cf86aafda71e0e2@mohiva.com> <9570D903A3BECE4092E924C2985CE485612B4EFE@MBX202.domain.local> <9570D903A3BECE4092E924C2985CE485612B4F63@MBX202.domain.local> Date: Thu, 11 Oct 2012 07:04:47 +0200 Message-ID: To: Clint Priest Cc: PHP internals , Jazzer Dane Content-Type: multipart/alternative; boundary=e89a8f23532baa28b904cbc18299 Subject: RE: [PHP-DEV] [RFC] Propety Accessors v1.1 From: pierre.php@gmail.com (Pierre Joye) --e89a8f23532baa28b904cbc18299 Content-Type: text/plain; charset=ISO-8859-1 On Oct 11, 2012 5:00 AM, "Clint Priest" wrote: > > Why is everyone so dead set against read-only and write-only? > > I could not disagree more with you on what is "pretty" and "readable". > > To me: > > public read-only $hours { > get { ... } > } > > Is infinitely more readable and understandable than: > > public $hours { > get() { ... } > private final set($value) { ... } > } Fully agreed. It is obvious and clear like water. Cheers, Pierre --e89a8f23532baa28b904cbc18299--