Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19874 invoked from network); 26 Oct 2012 10:53:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2012 10:53:43 -0000 Authentication-Results: pb1.pair.com header.from=tbprogrammer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tbprogrammer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: tbprogrammer@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:38859] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/92-00401-6BB6A805 for ; Fri, 26 Oct 2012 06:53:42 -0400 Received: by mail-oa0-f42.google.com with SMTP id j1so2728885oag.29 for ; Fri, 26 Oct 2012 03:53:39 -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=HvGrn5YIC/jYj+kLI9gdz3XW6ivL7k9t9Npw6cm4HBQ=; b=NmJjl5KA6obB5AQ2LRFbWbVaySGRBNofqo1iBeJj9R8VBI9npKl6QcXCYCZBnga1PK 5EfGEVb2zdk+AeljD3mtVDuMiniG3dXXyFU8OZuhMsBocycT/wu22ZfS2eRoqzR9K+L4 HQOOi4yPoKSDkZvr08bXvLR8oy/ixJLGt9/WN1syBajrUAivBF3ntmUaDltNUkvlgPS8 Gxv5Bafji8b01O1VtIh5P2yJE06MvGCCI64XLngrajznmDSMW7Mzo95XHpRWQ142asft mO6LsFVGQsAt3vrSh37j3X/UpmRa7OKfYOTM+7vEFVRjTJtjfw/4rjNZ64POayExKEAQ QT0g== Received: by 10.60.13.193 with SMTP id j1mr13936945oec.41.1351248819583; Fri, 26 Oct 2012 03:53:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.11.170 with HTTP; Fri, 26 Oct 2012 03:53:19 -0700 (PDT) In-Reply-To: <508A695F.8080308@zerocue.com> References: <508A695F.8080308@zerocue.com> Date: Fri, 26 Oct 2012 03:53:19 -0700 Message-ID: To: Clint Priest Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=e89a8ff253dce4fb2704ccf421a6 Subject: Re: [PHP-DEV] [RFC] Property Accessors v1.2 : Extra shorthand declaration From: tbprogrammer@gmail.com (Jazzer Dane) --e89a8ff253dce4fb2704ccf421a6 Content-Type: text/plain; charset=ISO-8859-1 Is the only intended benefit behind this proposal the ability to seamlessly extend a seemingly normal property as an accessor? On Fri, Oct 26, 2012 at 3:43 AM, Clint Priest wrote: > I'm opening up several new threads to get discussion going on the > remaining "being debated" categories referenced in this 1.1 -> 1.2 change > spec: > https://wiki.php.net/rfc/**propertygetsetsyntax-as-** > implemented/change-requests > > ------------------------------**------------------------------** > ------------ > *Extra shorthand declaration* > > Allow extra short declaration of an accessor: > > class TimePeriod { > public DateTime $date; > } > > /* Would be equivalent to this */ > > class TimePeriod { > public $date { > get() { return $this->date; } > set(DateTime $value) { $this->date = $value;} > } > } > > ------------------------------**------------------------------** > ------------ > Thoughts? > > -- > -Clint > > --e89a8ff253dce4fb2704ccf421a6--