Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94267 invoked from network); 3 Sep 2015 10:40:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 10:40:22 -0000 Authentication-Results: pb1.pair.com header.from=dan@dancryer.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dan@dancryer.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dancryer.com from 176.58.120.217 cause and error) X-PHP-List-Original-Sender: dan@dancryer.com X-Host-Fingerprint: 176.58.120.217 li522-217.members.linode.com Received: from [176.58.120.217] ([176.58.120.217:51969] helo=li186-57.members.linode.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/07-53181-49328E55 for ; Thu, 03 Sep 2015 06:40:20 -0400 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by li186-57.members.linode.com (Postfix) with ESMTPSA id 801B3118AD for ; Thu, 3 Sep 2015 11:40:17 +0100 (BST) Received: by wicfx3 with SMTP id fx3so15146434wic.1 for ; Thu, 03 Sep 2015 03:40:17 -0700 (PDT) X-Received: by 10.194.221.4 with SMTP id qa4mr51062351wjc.145.1441276817338; Thu, 03 Sep 2015 03:40:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 03 Sep 2015 10:40:07 +0000 Message-ID: To: Bob Weinand , PHP Internals Content-Type: multipart/alternative; boundary=001a11c3ae5eb87936051ed5680b Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: dan@dancryer.com (Dan Cryer) --001a11c3ae5eb87936051ed5680b Content-Type: text/plain; charset=UTF-8 > > I had this RFC in draft since some time, but delayed it due to all the > ongoing PHP 7 discussions. Also we have no master branch to merge features > in until 5.4 EOL. Thus I'm reviving this now. > > Time for the first RFC targeting PHP 7.1 (assuming PHP 8 isn't going to be > the next version ;-)): > > The short Closures RFC: > https://wiki.php.net/rfc/short_closures > > Hoping for constructive feedback, > Bob > As a PHP developer (not an internals developer) - I love this proposal! Out of interest, is there a technical reason you couldn't use an existing token, such as => for this? If you could, it'd be almost identical to the syntax used in C#: *ThingList.Where(x => x > 7)* *PersonList.Where(p => (p.Gender == "M" && p.Age < 30))* Dan --001a11c3ae5eb87936051ed5680b--