Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112579 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20189 invoked from network); 21 Dec 2020 22:48:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Dec 2020 22:48:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EEFA11804DD for ; Mon, 21 Dec 2020 14:21:13 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 21 Dec 2020 14:21:13 -0800 (PST) Received: by mail-qv1-f44.google.com with SMTP id l7so5181468qvt.4 for ; Mon, 21 Dec 2020 14:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=RXVKr7kRTMiZZYYBqFwhSF/9xHhmCHJlu8bQyUbETFs=; b=sF00fu829VvYKIJh9R71UFzgNHS+S0U6Yl7hhxNVYhTcqMasSWVal4Xm8qRO+WisuY q+AQwaHATBGMVPB2VFZLFWNf7YdzWMJ/AsOsdO+QHhID8awDZzPWJGtpISStlsSh5U/V xglP7AmTtG3nGHmJrtvlCBwJhsrerkR8QOjJeE96nvxbKZCE7nHxr7SxnMuhWOHpdWyh K0BwNXy7z5zb1u4dv4/GYXhoaZ49pwvEr28wPcDykCrK+VDWrpMWO2m7Es7mmDiqj/sx JU9NX0L+XS/NXsoecuqTWm7kdEtlrli8e4vbx3gy3ljhsyVrXkr7jCwVXQB1awnWuPJz vmWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=RXVKr7kRTMiZZYYBqFwhSF/9xHhmCHJlu8bQyUbETFs=; b=DB7hl/zY8JuQ3zfZybEOVPRjOtTpAElbcTjmHcJgQt5XG3dSgy0NZZqOG83eyvnLeM 1iqmWNdd5KugTiM+v3Im+qTTNaCjNpeTGlX9pwCkYM2kXfhdOYa2DYQ9kFqBoi/frKx+ ze9HtWoKIVCMIDdZYQKOZc9wUYWlj4mCrOYYQjI5l0exdNSDRevZHxK0hPHrZDOinhqy wYLnx8PzkYuBTZaB9Wt6HjVWIvsN3bdk6spm/ti2myt/cUjSTzaQlGQgpRsw1RC7fhaf LcEoH/yHCwDVZqqtjobed/oyAVDIM/x6ZEmAYMEC9Gg9gWeNd13GgEFA22Us3DfeJkfr VHVQ== X-Gm-Message-State: AOAM531RYtMzibAjYPHof0rswVAbOf58scQ3d3HjzbUm+nhjssdcVFFW QJ4FVX5HKOlWVo/s+ZnihGAIqA== X-Google-Smtp-Source: ABdhPJyy6NEhROonwr8KL8U6YyhfPPXnlEC6s3JflrzBEUr9WAk7/tdPYAHbvlo5hnc7bfGxC0iAVQ== X-Received: by 2002:a0c:c488:: with SMTP id u8mr19142044qvi.9.1608589273019; Mon, 21 Dec 2020 14:21:13 -0800 (PST) Received: from [192.168.1.236] (c-24-98-254-8.hsd1.ga.comcast.net. [24.98.254.8]) by smtp.gmail.com with ESMTPSA id r6sm12183843qkk.127.2020.12.21.14.21.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Dec 2020 14:21:11 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) In-Reply-To: <30565D7A-2E53-4269-BD1E-A1462BA9AFB0@benramsey.com> Date: Mon, 21 Dec 2020 17:21:11 -0500 Cc: Larry Garfield , php internals Content-Transfer-Encoding: quoted-printable Message-ID: <342D9549-BC4B-4474-B93A-C43848E6EE06@newclarity.net> References: <19FFF24D-3B1E-40FA-B836-9229E95416EE@newclarity.net> <30565D7A-2E53-4269-BD1E-A1462BA9AFB0@benramsey.com> To: Ben Ramsey X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] [RFC] Short-match From: mike@newclarity.net (Mike Schinkel) > On Dec 16, 2020, at 12:49 PM, Ben Ramsey wrote: >=20 >> On Dec 16, 2020, at 10:54, Mike Schinkel wrote: >>=20 >> If we allow "switch {...}" to represent "switch (true){...}" then = the value switch compares will be hidden and less obvious to a developer = if they are forgetting to consider switch's evaluation behavior. For = some people this would increase the WTF factor. >=20 > How does `"switch (true){...}"` cause less surprise than `"switch = {...}=E2=80=9D` for loose comparisons? IMO, seeing the boolean value = `true` causes more confusion, since it matches any truthy value but the = constant value in the expression is a bool. I believe I must have worded it such that you misunderstood what I was = writing. In fact, what you wrote is the point I was trying to get across. Sorry = for my poor phrasing. -Mike=