Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102275 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66422 invoked from network); 15 Jun 2018 13:48:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2018 13:48:31 -0000 Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.66 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.66 mail-wm0-f66.google.com Received: from [74.125.82.66] ([74.125.82.66:39895] helo=mail-wm0-f66.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/83-29356-3A3C32B5 for ; Fri, 15 Jun 2018 09:48:30 -0400 Received: by mail-wm0-f66.google.com with SMTP id p11-v6so4000153wmc.4 for ; Fri, 15 Jun 2018 06:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld-be.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=/TF1yNBkLgGXSty1V6aT90WWcpficRL4yhjzNQZYLio=; b=IX8jsXBMw39RgRt/V/9EXo2PZydJUwm9pdKj+bACI54VUudwej+FBY0lnMTc9UsdtK 4tMs9v5Rn67WemG3Kge8+oCC8hZrLsUrPomrS26N/aZk+/20g62DgqPmn+em+mnwA0M7 SyACaWmErMM/9tZ4leAFC/kWcQBy7sOKoSG1zlgo/f4Q/WM1wndVGdj5l359MK5nH7yW gjJAHfMvYMCIOxfIjm3uA5WFc5tnhCdgQJIDJ9zpKliHP8PM5nV3tl90BeLzVTXCL139 1vhiMATgnC0QLvrXBUUsgcEdcGH8gfW+p16Fa9IBAqWfGM1PJLWg5wb93aE5Meaxlcau NdIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/TF1yNBkLgGXSty1V6aT90WWcpficRL4yhjzNQZYLio=; b=b1fruf/eqkpEMRa66cRNCYAUCWjH6x7czirLC1T0Taq6OAjK/qEE1GganJwcQvfJoz 4n5z6bzPFZvf04ivSMp2qD5cZq4vE/AJ0nja8PT49Pmh+wsX5QJ3xAf4YpdiO1JNrqCA jOZCXUJePmEcm614us7HJLtTYW/eRuIydlQzyT4WOXvsfNaRDmGkmIydo5feDchH1oK0 IlxKRmRkb4TkilwLcd5/FkEt4M6zkKOqDjCMa2vljfhmrKe3F0Saj/lu6cSgb3ONsez2 XfovWreYLIKtEnGVtrUtwKikAxlLtcUGjVxuvFg3Y2zG9yO6yvL6EOFpp6rnkNnA4H/1 IADw== X-Gm-Message-State: APt69E2unyiXmFWP6KLJLgMeUGvvwbtMOWnv+YV5zeh/utWAjolGa0HM y7ojE6SEZvSiU426M8njsX9fUbbhm+0= X-Google-Smtp-Source: ADUXVKLIIdxbUX5LJD1zbqqhm1afCytS9td0Ovrc9uk2Qa04Y+epJ/55Bpp2jFWq9SqEW/MT9sCqqg== X-Received: by 2002:a50:84e9:: with SMTP id 96-v6mr1986260edq.130.1529070495273; Fri, 15 Jun 2018 06:48:15 -0700 (PDT) Received: from [192.168.2.171] (208.223.63.188.dynamic.wline.res.cust.swisscom.ch. [188.63.223.208]) by smtp.gmail.com with ESMTPSA id c46-v6sm3653280edc.34.2018.06.15.06.48.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 06:48:13 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <9c5726da-df63-2829-3df3-d44b5fe52500@seld.be> Date: Fri, 15 Jun 2018 15:48:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [PHP-DEV] Strict switch statements From: j.boggiano@seld.be (Jordi Boggiano) On 15/06/2018 00:10, Stanislav Malyshev wrote: > With current tendency to move to more strict interpretation and a bit > away from type juggling, I think it has its place. But I am not a big > fan to putting === there, it looks weird. Maybe go a bit further and > make the whole switch strict? > > strict switch ($a) { > case FOO: > case BAR: > // both are strict === > } Might I suggest a new strictwich ($a) { ... } keyword? It's much more appetizing. Apologies, Jordi -- Jordi Boggiano @seldaek - https://seld.be