Re: [RFC]Discuss] Syntax for Arrow Functions

From: Date: Wed, 21 Jun 2017 22:23:05 +0000
Subject: Re: [RFC]Discuss] Syntax for Arrow Functions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.internals 
Request: Send a blank email to internals+get-99601@lists.php.net to get a copy of this message
On Wed, Jun 21, 2017 at 11:19 PM, Rowan Collins <rowan.collins@gmail.com> 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

« previous php.internals (#99601) next »