Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104637 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13236 invoked from network); 11 Mar 2019 00:56:09 -0000 Received: from unknown (HELO out2-smtp.messagingengine.com) (66.111.4.26) by pb1.pair.com with SMTP; 11 Mar 2019 00:56:09 -0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0F577211EC for ; Sun, 10 Mar 2019 17:45:38 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Sun, 10 Mar 2019 17:45:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=vw4zT0wZ2O+5q96YTgiDVeiYXofmBnTa1gYW1bEi9EM=; b=CJvnvVMI 0u3E505xJymHE2B7359lxybl8vSCZCxlKE9XIEKKWeBtE5+FcbKd+0GPO7GDfBS0 EX8wcJ/JJNVn1Jn9m9Ju3ud/PM/KX7MbwHf3kwjadM5T8xtpoQ+DOuezBy2d+CbR 1DEhXM141WS4C9FLsxp+Oja5CJ/VP3MSfv7iiE7ODBXC5lnJADCbJhWmdTC2iKNB 4MRemGaDaaBf802djfxPW2Gw82cZs282c2xgYAITNLDW6OecpWFj/JhpEJlrs9L4 vZofUYf2MvCJPsKX4lCsd+kjv+daXmj+iPe37Jm/PrQOFfKN6x38gvcs2vTvX6uc GoRW8VYHxzeC8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrgeeggdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdfnrghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgr rhhfihgvlhguthgvtghhrdgtohhmqeenucffohhmrghinhepphhhphdrnhgvthenucfrrg hrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7B9C2B450D; Sun, 10 Mar 2019 17:45:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.5-925-g644bf8c-fmstable-20190228v5 X-Me-Personality: 10727885 Message-ID: Date: Sun, 10 Mar 2019 17:44:32 -0400 To: internals@lists.php.net Content-Type: text/plain Subject: RFC Draft: Comprehensions From: larry@garfieldtech.com ("Larry Garfield") Hello, peoples. I know it's been discussed once or twice before on the list, many years ago, but not recently. I therefore feel OK putting forth the following draft proposal for Comprehensions, aka "compact generators", in PHP: https://wiki.php.net/rfc/comprehensions Sara Golemon has written a preliminary patch that is partially complete (see the RFC link for details, it's impressively simple), but unfortunately doesn't have the bandwidth to complete it at this time. I am therefore looking for collaborators with more knowledge of internals than I (which is almost everyone) to help finish it up. The syntax proposed is also subject to revision if a terser but still lexer-friendly alternative can be proposed. At the moment I'm not calling this Proposed yet, as I don't feel comfortable doing so until someone else is on board to finish coding it. That said, if someone wants to weigh in on the concept for now (hopefully supportively) that's also fine. Anyone excited enough to help finish the job? (This is my first RFC collaboration, so if you're going to smack me for goofing something please be gentle about it.) -- Larry Garfield larry@garfieldtech.com