On Fri, 15 Mar 2019 at 09:01, Alexandru Pătrănescu <dreal...@gmail.com> wrote:
> My question would be: whatever syntax we are going to use that has arrow > syntax, let's say *$f = \($x) => $x * 2;* are we going to also support the > arrow block version?: > *$f = \($x) => {* > * // more operations that will have better visible on multi-line* > > * return $x * 2;* > *}* > See "Future Scope" in the RFC: > This feature is omitted in this RFC, because the value-proposition of this syntax is much smaller: Once you have multiple statements, the relative overhead of the conventional closure syntax becomes small. We shouldn't pick a syntax that rules it out, but it can be added later, with a separate RFC to discuss the benefits and details. Regards, -- Rowan Collins [IMSoP]