Re: [RFC] Alternative "use" syntax for Closures

From: Date: Sat, 15 Jun 2019 22:03:41 +0000
Subject: Re: [RFC] Alternative "use" syntax for Closures
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-105938@lists.php.net to get a copy of this message
On Sat, 15 Jun 2019 at 23:57, Marco Pivetta <ocramius@gmail.com> wrote: > On Sat, Jun 15, 2019, 23:53 Wes <netmo.php@gmail.com> wrote: > > > Hello PHP, I just published > > > > https://wiki.php.net/rfc/alternative-closure-use-syntax > > > > I would love your opinion on this > > > > I know it seems overkill and wrong to have two different syntaxes for the > > same thing, but I really believe that's all we need to fix one of the > most > > hated PHP syntax bits. > > > > Thank you. > > > > Wes > > > > Tbh, I love the fact that closures have explicitly imported scope: makes it > clear when something is starting to have too many responsibilities. > I personally don't really mind the current way of doing imports and I agree with Marco that it makes clean when a closure tries to do too much. However, I kind of like/understand the syntax proposed so this is more a +0 for me than anything else. Best regards George P. Banyard

« previous php.internals (#105938) next »