Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102270 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32281 invoked from network); 15 Jun 2018 00:41:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2018 00:41:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.69 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.69 outbound0.mail.transip.nl Received: from [149.210.149.69] ([149.210.149.69:54510] helo=outbound0.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/00-29356-44B032B5 for ; Thu, 14 Jun 2018 20:41:42 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound0.mail.transip.nl (Postfix) with ESMTP id 416MBB15ZBzymwD for ; Fri, 15 Jun 2018 02:41:38 +0200 (CEST) Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com [209.85.128.181]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 416MB91b1sz12Mp4 for ; Fri, 15 Jun 2018 02:41:35 +0200 (CEST) Received: by mail-wr0-f181.google.com with SMTP id x4-v6so8201994wro.11 for ; Thu, 14 Jun 2018 17:41:35 -0700 (PDT) X-Gm-Message-State: APt69E1Ws1dQrejm9Zl/7sIAb/WugjUoCg4vYGUYI/rR9E6/RqVuEVhu PubpHe92xcnM7YMDr/OX66X4PTsT2+s8afklpeA= X-Google-Smtp-Source: ADUXVKLEhIk3DUfTIu4k2+hOW8B0KiWRDNdchBp1+93oUjR4o2RW7TghlRKOZha/K04GJxjkVNwUV7H2oo3q+dibRB0= X-Received: by 2002:adf:f98a:: with SMTP id f10-v6mr4100530wrr.105.1529023292275; Thu, 14 Jun 2018 17:41:32 -0700 (PDT) MIME-Version: 1.0 References: <20180614155730.2C8BC1A8027C@dd1730.kasserver.com> <53d1a1f6-10b8-3aec-c2ac-a005d6041f15@librelamp.com> In-Reply-To: Date: Fri, 15 Jun 2018 01:41:21 +0100 X-Gmail-Original-Message-ID: Message-ID: To: chasepeeler@gmail.com Cc: Rowan Collins , alice@librelamp.com, PHP internals Content-Type: multipart/alternative; boundary="000000000000308184056ea37a4c" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1529023298; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=50IMTqenOQHIi3oIHckvsC4SeKrv/Y8dNRLehdaVhpo=; b=XjICBBfvPI38mZX8hQlRtr5i9k0RwJAA37wpQVpb/e0QS1s8zLGOb0htJaxviVsK25vEo3 y1VSOT3yIQ4nCm2NM5o7z9ifLL7DjCpp/GcYo7D+cvgtunqFGTuFzR9A0L8mFMxZ4Nxmrr rRnElqrJS80TbrMWHe0K1Y74sIULHm0poV1Gfv5nXCOhTVfwsl79CrwyUp+knp3brWw4Ef Oycwm4ryhFUyzOwluGhlPUQEBQbqJOvY/Kk01aoLZMJ3M2JQVU2hug1eORJEymDNZ17kzA qatsBhpoqAlVy2ZC9OMihFuFx3W8jBGnzWCneCa9Nd1PYGdNHbXZr4QRfbRDJw== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] Strict switch statements From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --000000000000308184056ea37a4c Content-Type: text/plain; charset="UTF-8" > > switch($a){ > case true: > //will match true, 1, etc... > break; > strict case false: > //will not match anything except boolean FALSE > //other stuff > break; > case false: > //will match 0, null, etc.... > break; > } > I like this syntax, but I think I'd prefer the other way around. `case strict false:` describes better what the condition is. Regards, Pedro --000000000000308184056ea37a4c--