Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57851 invoked from network); 10 Jul 2018 19:38:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2018 19:38:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.173 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.161.173 mail-yw0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:45814] helo=mail-yw0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/4D-15421-B4B054B5 for ; Tue, 10 Jul 2018 15:38:52 -0400 Received: by mail-yw0-f173.google.com with SMTP id 139-v6so8275379ywg.12 for ; Tue, 10 Jul 2018 12:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5502q5FwswRu5evkSkFFB/9rJbIVj6EZn5g0+4EX0UA=; b=R1rI3ahuHeKbEu/leHy78BTbcmS5x89ML2Y7omgjyN6Ykr2sS86sA84uDfVDlW2f5Y jqYmPAyTyyjdLnuzCIY2EFXQshajn0Rm1XVnukkbY5on+OPljnbdfSACOqTYmoVF+qoJ MshZw/BoTTUUWQPBdxo+MwmdBTFlJZl67Mq7V1jprvo0E80Q+tTAoGoRfhmjIC6eJBRa 9hsT3CBINc4DUK9MvaTonkxd214+8Y5KOnC/d8vSHYM/JuFxoM3tp/UrObrS/p413bkk qNaQQkjaOjBkssTvQ8Ryp+uekNrYBSQjPj+5gaVckROFmD4Afh8R6jsCITS8KKmv9RFU DLCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=5502q5FwswRu5evkSkFFB/9rJbIVj6EZn5g0+4EX0UA=; b=Uorca3MDo2t9OHM2q74AGJjhcljg7OR/MG8aIZ4uCUnhCIXXc2vb/QmGeX4lnBFN9z UbbbLUTw7Po8QVrH9q1lIAqF0XJsQiR3TW2rtc+K+YpdJK9Xb11YGe2wi8teZltaBbvi KqVTFj8G+C+hbirfPOe7EHXq09SEvDxQv/xNyoWd4rGLfUXaZBGIGDBnSnk0zf7cdxX0 t5w+MiY3c+NILo89lXS8LVL4hi5s3nSTtwqQ7n1oVgrAJXu4qrS72mh3Z/HPSyvYgbWe SMx0iO4/AUKhdjVl22je9vkX+d5Sjqak26/5r+tbyjbK+WU708QLf0sYASVG8H167xn7 Ce8Q== X-Gm-Message-State: APt69E0lRJS20RYccWd1e2GNP/KuKJVlhdZVvvHK/qvGw/xsUElg2T67 mY1iT+VmhPpsq4r7h4opZuW8iaVSrAjtEEYPZT13GA== X-Google-Smtp-Source: AAOMgpdxM58E23t1ZRDEpQlBHm9eu+LfljXJWXnIKC/SgyrjM99A2bhoNotb8bt+Ac/wM+hZ1R6SMLMZHCR2/4lTISs= X-Received: by 2002:a0d:f884:: with SMTP id i126-v6mr13165431ywf.245.1531251529168; Tue, 10 Jul 2018 12:38:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 10 Jul 2018 14:38:36 -0500 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000007544d90570aa4779" Subject: Re: [PHP-DEV] Unifying logical operators From: tendoaki@gmail.com (Michael Morris) --0000000000007544d90570aa4779 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 9, 2018 at 10:03 PM Ryan wrote: > Hello all! Longtime PHP user, first-time contributor to internals (sorry > if I screw anything up)! > > I'd like to propose either the deprecation (7.next - likely 7.4 at this > point) and removal (8.0) of the T_LOGICAL_OR (or), T_LOGICAL_AND (and), and > T_LOGICAL_XOR (xor) tokens, or aliasing them to ||, &&, and != > respectively. > While having these behave they do is unfortunate, it is hardly the only one of PHP's quirks. Ever looked at the ramifications of loose typing with comparison? http://phpsadness.com/sad/52 > defined("SOME_CONSTANT") or die("SOME_CONSTANT was not defined"); > > However, this behaviour has nothing to do with the difference of precedence > - rather this is due to short circuiting. True, but that's still a lot of code to break. A *lot* of code. Far too much to consider changing this even at a major level I would think. PHP if anything, is too pragmatic a language for this change. --0000000000007544d90570aa4779--