Re: [RFC][Vote] Auto-capture closures

From: Date: Fri, 01 Jul 2022 14:11:03 +0000
Subject: Re: [RFC][Vote] Auto-capture closures
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-118155@lists.php.net to get a copy of this message
>As far as we are aware, only two languages in widespread use require variables to be explicitly closed over: PHP and C++. All other major languages capture implicitly, as is proposed here. to be fair to c++, it supports [&] to capture everything, like int a=1,b=2,c=3;[&]()->void{std::cout << a << b << c;}(); On Fri, 1 Jul 2022 at 16:05, Larry Garfield <larry@garfieldtech.com> wrote: > Greetings, Internalians. > > The vote for auto-capture closures is now open. It will run until 15 July. > > https://wiki.php.net/rfc/auto-capture-closure > > -- > Larry Garfield > larry@garfieldtech.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >

« previous php.internals (#118155) next »