Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94653 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28784 invoked from network); 23 Jul 2016 19:39:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2016 19:39:33 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.53 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:34917] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/83-05797-4F7C3975 for ; Sat, 23 Jul 2016 15:39:33 -0400 Received: by mail-oi0-f53.google.com with SMTP id l72so205587347oig.2 for ; Sat, 23 Jul 2016 12:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=DxMm7dJjlzruj2pIxvniiaHVLRrjk0AmRLJJ3sx8O04=; b=dxk9zh2WKzzyHFhYSbcKCU/NWAcI/IahDKFgi979NhRTgZ7PK2hnsh3KcILZ5ojg0K 0jDdof0LlJMduuIs6uxPgZqeIhXP4v3D7TuBtTbPCLbHFzg94ineyLiTmhXiJEPJhsF5 FnhVh2hYET8PyG9Ut5ZH6fRbLfXYB69h4Oo/jMzsRGBTS/C9ag9CD+gQ+r8ojt+oTT6q IDWN0XyennqUR+9L03mF/rl5SfCx9ysBJZSqh/htK8v0TvTGR2PUf/kLPHOgLfIrmps9 E/uO4F7jclPopfZkUUvqedUdm1++N8UFoi02q/zwHeDmwJFZp8EdDaLbc2NlxX45BJkC C2Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=DxMm7dJjlzruj2pIxvniiaHVLRrjk0AmRLJJ3sx8O04=; b=byaPJrQ5G9gUOyLJa/disApehm3oYlMtEKM/dbybNoJs6amS9rLANeT5q5FLhJ993r M0N+0uyPb2d39PYljf/4YawjbhU1FsKrx3w6RUEgEUZjZ3gwMRcjvx2KB33GztkrYtZb /EY0Tt74v81VX+h3vwutSMWQKky5ZPmSna2ATmc2AopXFGhprIDWNMVG8IHTWRPe+Gf8 9kohmiTE6q5D8WEa4PpYtYNPTtiAx/5m9Lqy5iP2pS7/rRd6mmHPbeYfT3MwyTYjE1B2 z1qBajFjv5ffZSgmlddsbft7DkshEtsz2Hi07Jz/qMwxs3JDtcUzc15CQ2v47HCSpFXH Kf5Q== X-Gm-Message-State: AEkoouu9FYM4BYUv10r4gBpZsiyop6hkFqJkBULhmWlG6uqyxUkb9EVNHGngeEwfeRco+w== X-Received: by 10.202.226.205 with SMTP id z196mr5774166oig.13.1469302769900; Sat, 23 Jul 2016 12:39:29 -0700 (PDT) Received: from brians-iphone.att.net (108-201-189-144.lightspeed.sntcca.sbcglobal.net. [108.201.189.144]) by smtp.gmail.com with ESMTPSA id z18sm7741977otd.13.2016.07.23.12.39.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jul 2016 12:39:29 -0700 (PDT) To: David Rodrigues , PHP Internals References: Message-ID: Date: Sat, 23 Jul 2016 12:39:27 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: lazy statements From: smalyshev@gmail.com (Stanislav Malyshev) 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