Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76018 invoked from network); 21 Feb 2015 05:11:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2015 05:11:51 -0000 Authentication-Results: pb1.pair.com header.from=tpunt@hotmail.co.uk; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tpunt@hotmail.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.co.uk designates 157.55.1.171 as permitted sender) X-PHP-List-Original-Sender: tpunt@hotmail.co.uk X-Host-Fingerprint: 157.55.1.171 dub004-omc2s32.hotmail.com Received: from [157.55.1.171] ([157.55.1.171:60353] helo=DUB004-OMC2S32.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/00-08895-59318E45 for ; Sat, 21 Feb 2015 00:11:50 -0500 Received: from DUB113-W133 ([157.55.1.136]) by DUB004-OMC2S32.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Fri, 20 Feb 2015 21:11:45 -0800 X-TMN: [oVFdqELI0G2Xj+mUaap1Ah6q/sRLEb6g] X-Originating-Email: [tpunt@hotmail.co.uk] Message-ID: Content-Type: multipart/alternative; boundary="_184cbf01-1dad-444c-bdc6-3edf440c0f4d_" To: "internals@lists.php.net" Date: Sat, 21 Feb 2015 05:11:45 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 21 Feb 2015 05:11:45.0781 (UTC) FILETIME=[E34E6A50:01D04D94] Subject: [RFC] Make empty() a Variadic From: tpunt@hotmail.co.uk (Thomas Punt) --_184cbf01-1dad-444c-bdc6-3edf440c0f4d_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Internals! The following RFC aims to make empty() have a variable arity: https://wiki.= php.net/rfc/variadic_empty. This is a simple feature that enables for a sho= rt-hand notation of checking multiple expressions for emptiness (which is a= pretty common thing to do). I have avoided including the is_*() functions into this RFC because my main= priority is to get this particular feature into PHP 7.0 before feature fre= eze. Provided I have some free time over the next week=2C I'll write up ano= ther RFC + patch to cover the is_*() functions. Thanks=2CTom = --_184cbf01-1dad-444c-bdc6-3edf440c0f4d_--