Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18162 invoked from network); 21 Jun 2017 22:23:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2017 22:23:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.69 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.69 outbound0.mail.transip.nl Received: from [149.210.149.69] ([149.210.149.69:60300] helo=outbound0.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/D0-13828-6E1FA495 for ; Wed, 21 Jun 2017 18:23:35 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound0.mail.transip.nl (Postfix) with ESMTP id 3wtK42435Cz11VTX for ; Thu, 22 Jun 2017 00:23:30 +0200 (CEST) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 3wtK402qLBz12Lfc for ; Thu, 22 Jun 2017 00:23:27 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id 77so153536126wrb.1 for ; Wed, 21 Jun 2017 15:23:27 -0700 (PDT) X-Gm-Message-State: AKS2vOwnYy5yYAw3aZvbYabXgDgHKrQc/jitmbmar5WBFCYUtQwL7QYG +IxWCRK28xK6XRjlO+NFR3AAPwRFAQ== X-Received: by 10.28.170.15 with SMTP id t15mr49588wme.16.1498083806748; Wed, 21 Jun 2017 15:23:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.64.213 with HTTP; Wed, 21 Jun 2017 15:23:05 -0700 (PDT) In-Reply-To: <76f05ddb-fe72-fa90-e3a0-8e5233952aa1@gmail.com> References: <5fe1eefe-1c4f-4c31-c975-ab6c768c977c@telia.com> <3C763609-54FC-480B-AE95-94A1873226E0@me.com> <9A3447BF-F982-4C5A-B55B-466036AF2E53@me.com> <2d89daaa-056f-3dcb-a5f2-b790affe203a@garfieldtech.com> <76f05ddb-fe72-fa90-e3a0-8e5233952aa1@gmail.com> Date: Thu, 22 Jun 2017 00:23:05 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: multipart/alternative; boundary="001a1144272e252a1805527fd1f4" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1498083810; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=NTai//cebCFoH5qPf0FGs7fVJoXV2GZbwaW0sAs2dVs=; b=qjEi8fh48EsukU3pHJK4jI9/N8vGQf3Lm/WcHeWxSxreM1cGBQfvcOi+vwMxBOAffKcJ1m oyXYWhNiH4aUQH158GdurMF2whLN8IQUC8GzZHNJvO1oJEyJsnmy7lNF4SiWSaAvI6TChh eXO2GKs6zafzg+KuaSRqE62wtSgXAM2kQ3NmpbwmpOER8l3HWQb3J5ZUcHK6JXzPoGevoR Wx6W52QzKI+I0+d6bJb/0WAZr8HjPimIMal+S37WnWyidNJy+jKaietTvU+H8lhUd2pMzk vxIhk6nQo2pmYQVYhybR4+Mq18tQQg1MBhk4l3S6ZhJHUqJSbI5LR7ZvQ8O7cQ== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --001a1144272e252a1805527fd1f4 Content-Type: text/plain; charset="UTF-8" On Wed, Jun 21, 2017 at 11:19 PM, Rowan Collins wrote: > > The short form is still constrained to be a single expression, because > otherwise you can't omit the "return" statement; For the sake of discussion, Groovy has optional returns where the last evaluated expression in a closure is returned. http://groovy-lang.org/semantics.html#_optional_return_keyword http://groovy-lang.org/style-guide.html#_return_keyword_optional --001a1144272e252a1805527fd1f4--