Re: RFC: lazy statements

From: Date: Sat, 23 Jul 2016 19:39:27 +0000
Subject: Re: RFC: lazy statements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-94653@lists.php.net to get a copy of this message
Hi! > This Feature Request is about the implementation of lazy statements. > > Basically it should implements a 'lazy' keyword (or similar) and > structured like an anonymous function, except that it doesn't accepts > arguments, but accept the use() feature. > > $var = lazy { return 1; } Is this just keystroke saving for function() or is this supposed to do something additional? -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#94653) next »