Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85336 invoked from network); 21 Feb 2015 06:20:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2015 06:20:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:36988] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/B1-08895-6B328E45 for ; Sat, 21 Feb 2015 01:20:38 -0500 Received: by mail-vc0-f170.google.com with SMTP id hq12so4379402vcb.1 for ; Fri, 20 Feb 2015 22:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=MU62BfIlfn9C7/MKhIBAw0dCr/L51gvGy+Hv7Jx9eB0=; b=HTmNvjxrV1PgfyF5LofJPM/X52tXgV/1h3KS+/ecPTm9k/MR43VQg4evj85YpvZyZZ xy+DbSr9368f7LembcoENuvu1wrIA4KxpZs/Z7g6m+XkPN/AtNwop/X/j8ZlSbO02g6h BCxY0whXWKTFdh91k05q41i27Bls9oiWd6dmSaU959ebEuNstP/a+RKg/XIjJD6bciVk 7B29VBWTi8uDt5bpkMdIIpqmcVQA/EUycmMXgtZjKXkkao4R/09Mm6ZGmesSIQiN3XZF pBEBhCWISxVWQ+FOr7Qoitu1R4QZp3fXijWbY7jXfi/Y4R8/gidZdGTeobSA3a4yvRl7 85CA== MIME-Version: 1.0 X-Received: by 10.52.103.75 with SMTP id fu11mr1187314vdb.5.1424499635308; Fri, 20 Feb 2015 22:20:35 -0800 (PST) Received: by 10.52.179.168 with HTTP; Fri, 20 Feb 2015 22:20:35 -0800 (PST) In-Reply-To: References: Date: Sat, 21 Feb 2015 06:20:35 +0000 Message-ID: To: Thomas Punt Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Make empty() a Variadic From: leight@gmail.com (Leigh) Hey Tom, Patch looks solid (basically the same as the isset logic with OR instead of AND). I think it's fairly sane to have this feature because it compliments isset functionality (although I dislike "empty" personally - consistency is nice) No RFC would be complete without a complaint about naming. "empty_expressions" ... I'll give you an empty expression! But overall +1 on functionality and patch. Cheers! Leigh. On 21 February 2015 at 05:11, Thomas Punt wrote: > Hello Internals! > The following RFC aims to make empty() have a variable arity: https://wik= i.php.net/rfc/variadic_empty. This is a simple feature that enables for a s= hort-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 ma= in priority is to get this particular feature into PHP 7.0 before feature f= reeze. Provided I have some free time over the next week, I'll write up ano= ther RFC + patch to cover the is_*() functions. > Thanks,Tom