> Once you start getting into multi statement closures, all the weird syntax elements that are being proposed just make it harder to read and harder to visually parse.
The same is true for current function syntax. But that's what line-breaks are for :-) > Automatically importing variables isn’t “more natural”, unless you think JavaScript is god’s gift to programmers. Meh, but it's what web developers are used to. The two biggest web languages, PHP and JS, you know? Most other languages don't require you to explicitly import vars into closures either. On Wed, Jun 21, 2017 at 5:19 PM, Stephen Reay <step...@bobs-bits.com> wrote: > > > On 21 Jun 2017, at 21:04, Rasmus Schultz <ras...@mindplay.dk> wrote: > > > > Once people see the nicer, shorter syntax, > > For anything but the most basic of closures, the shorter syntax just makes > it harder to visually identify the logic. For 1 liners like `fn($x) => $x * > 2` I can agree there is an argument that its easier to read. I don’t > necessarily agree but I can agree there is an argument to be made. > > Once you start getting into multi statement closures, all the weird syntax > elements that are being proposed just make it harder to read and harder to > visually parse. > > > > and start to enjoy the more > > natural scoping rules, > > Automatically importing variables isn’t “more natural”, unless you think > JavaScript is god’s gift to programmers. > >