Re: [RFC] Arrow functions / short closures

From: Date: Thu, 14 Mar 2019 17:19:56 +0000
Subject: Re: [RFC] Arrow functions / short closures
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-104720@lists.php.net to get a copy of this message
On Thu, Mar 14, 2019 at 3:49 PM Rowan Collins <rowan.collins@gmail.com> wrote: > > Is it really that important to save two key strokes per closure? > I'd say that the (probably overwhelming) majority of arrow functions have a single parameter and, in those cases, the JS syntax saves four characters, ignoring whitespace. Another way of looking at it is that you have six characters of boilerplate with the fn() syntax versus two in JS (ignoring whitespace) for single param arrow functions.

« previous php.internals (#104720) next »