Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82611 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9978 invoked from network); 13 Feb 2015 13:45:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2015 13:45:07 -0000 Received: from [127.0.0.1] ([127.0.0.1:12159]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 3D/B8-62214-1EFFDD45 for ; Fri, 13 Feb 2015 08:45:05 -0500 Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:14475] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/A8-62214-B2CFDD45 for ; Fri, 13 Feb 2015 08:29:15 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 05E324B0267; Fri, 13 Feb 2015 14:29:06 +0100 (CET) Reply-To: To: , "Michael Wallner" Date: Fri, 13 Feb 2015 14:29:07 +0100 Message-ID: <008601d04791$0af988a0$20ec99e0$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdBHkPqOHczYlA3jTH2Ylu3Xrt+PTg== Content-Language: fr X-Antivirus: avast! (VPS 150213-0, 13/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] [DISCUSSION] Make empty() a Variadic From: francois@php.net (=?iso-8859-1?Q?Fran=E7ois_Laupretre?=) > De=A0: Michael Wallner [mailto:mike.php.net@gmail.com] De la part de = Michael Wallner > > > I think the || behaviour is the most useful, as it=92s the analogue = of > > isset=92s. So !empty($a, $b, $c) would work similarly to isset($a, = $b, > > $c), and similarly, !isset($a, $b, $c) would work similarly to > > empty($a, $b, $c). > > > > But that=92s just my opinion. :) >=20 > Okay, while I think it has a tiny WTF attached, because isset() has = ALL > semantics and empty() would have ANY semantics, it's probably useful > only in that way. Agreed. Adds an ambiguity but would be useless otherwise. May I suggest to extend your proposal to is_null() with the same logic ? Fran=E7ois