Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63652 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48363 invoked from network); 26 Oct 2012 15:18:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2012 15:18:58 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:50246] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/50-45465-0E9AA805 for ; Fri, 26 Oct 2012 11:18:57 -0400 Received: by mail-la0-f42.google.com with SMTP id e6so2747120lah.29 for ; Fri, 26 Oct 2012 08:18:53 -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=WYpmBTagThdwG0t9jd/etaX5tmjOEqzl+lqyRw+LICs=; b=ujkpzxjCThU6dFEk56/sFOxVW3v9IYP0EcnvO5rd0ziVqg8qcPSrz3sIN37Bofc7Pe +MmJfGvkgRwfmx/vM6ZlqsmpWHMJdkpnurcfAs1YWwCDVLbwUF0B8LBI+tudiaswtkT/ nfP+OnLfEmzNKDensAO2b7C/q0SdzYrDYEgOD1QOp0Caf+HXBLsgXQvSq5GlEOp+Q8bi QbSPmWCfOSEr6zVGCyaM3LVrDhmrVklOoIzdv00XmLQizI0fUH23iT2xAKDe9ZFCpwg3 310r5F1qvixjEkbzfnx36oRT+DjkLSQ25VIOhK96FRljq699fK/D/UGXGIqCiVfh1Lwd CCSg== MIME-Version: 1.0 Received: by 10.112.82.226 with SMTP id l2mr9121640lby.65.1351264732959; Fri, 26 Oct 2012 08:18:52 -0700 (PDT) Received: by 10.112.36.39 with HTTP; Fri, 26 Oct 2012 08:18:52 -0700 (PDT) In-Reply-To: <508A695F.8080308@zerocue.com> References: <508A695F.8080308@zerocue.com> Date: Fri, 26 Oct 2012 09:18:52 -0600 Message-ID: To: Clint Priest Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Property Accessors v1.2 : Extra shorthand declaration From: morrison.levi@gmail.com (Levi Morrison) > ------------------------------------------------------------------------ > *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;} > } > } This is lovely. Full support from me. I just have one question: can we drop `public`? Default visibility in methods is public, so maybe we can drop it when using type-hinted properties? Just an idea; no worries if it needs to stay.