Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5228 invoked from network); 25 Sep 2015 07:08:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2015 07:08:08 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:48017] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/F0-31991-6D2F4065 for ; Fri, 25 Sep 2015 03:08:07 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 1F75D6D2002; Fri, 25 Sep 2015 09:08:03 +0200 (CEST) Received: from w530phpdev (pD9FE871E.dip0.t-ipconnect.de [217.254.135.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 867256D2002; Fri, 25 Sep 2015 09:08:00 +0200 (CEST) To: "'Bob Weinand'" , "'PHP internals'" References: In-Reply-To: Date: Fri, 25 Sep 2015 09:08:00 +0200 Message-ID: <024801d0f760$ec2a4a60$c47edf20$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQKKz9RYdR6eK9phhyZiWueVagGj+JzZHbIA Content-Language: en-us Subject: RE: [PHP-DEV] [RFC] [VOTE] Short Closures From: anatol.php@belski.net ("Anatol Belski") Hi, > -----Original Message----- > From: Bob Weinand [mailto:bobwei9@hotmail.com] > Sent: Tuesday, September 22, 2015 4:00 AM > To: PHP internals > Subject: [PHP-DEV] [RFC] [VOTE] Short Closures > > Hey, > > Thanks for all your feedback in the discussion thread! > > So, before I start the vote, just two quick notes: > I've added two notes about the statement syntax and the single variable use. > Though a few people complained, I'm not switching to the ==> operator, as I > noticed many people expected typehints to work (they don't due to parser > limitations) when they compared to Hack's short Closures. It also allows us to > differ syntax-wise [e.g. for typehints] from Hack without causing any confusion > later. Which should be the smartest choice: Avoid conflicts. (If anyone strongly > feels against that, he may vote no, but I would like to not bikeshed that in this > Vote thread, but leave it free for eventual actual issues.) > > Now, the link to the RFC about Short Closures: > https://wiki.php.net/rfc/short_closures > or straight ahead to the vote: > https://wiki.php.net/rfc/short_closures#vote > To explain my "no" vote - the concerns about tilde usage and lack on type hints support was decisive for me. Also, as in the example with short definitions to access properties while it actually lacks on proper accessors syntax- well, probably not the best example. Regards Anatol