Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35963 invoked from network); 22 Jan 2013 08:15:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2013 08:15:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars.schultz@toolpark.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars.schultz@toolpark.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain toolpark.com from 195.49.42.12 cause and error) X-PHP-List-Original-Sender: lars.schultz@toolpark.com X-Host-Fingerprint: 195.49.42.12 mail1.screenlight.ch Received: from [195.49.42.12] ([195.49.42.12:53308] helo=mail1.screenlight.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/A0-28294-0AA4EF05 for ; Tue, 22 Jan 2013 03:15:29 -0500 Received: from [192.168.1.112] ([192.168.1.112]) (authenticated user lars.schultz@toolpark.com) by mail1.screenlight.ch (Kerio Connect 7.0.2 patch 1) (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for internals@lists.php.net; Tue, 22 Jan 2013 09:15:24 +0100 Message-ID: <50FE4A9C.5080901@toolpark.com> Date: Tue, 22 Jan 2013 09:15:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Alternative typehinting syntax for accessors From: lars.schultz@toolpark.com (Lars Schultz) Am 22.01.2013 09:07, schrieb Nikita Popov: > It's not just about the lines of code. It's about having a more readable > and more intuitive syntax. Am I the only one who thinks that "public $date > { get; set(DateTime $date); }" looks pretty ugly/unclear compared to > "public DateTime $date;"? FWIW: I agree;) If accessors get through, I'd rather have this alternate syntax. The other looks like a typo. I don't get to vote though...