Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117148 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2330 invoked from network); 27 Feb 2022 07:06:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Feb 2022 07:06:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 377DE180382 for ; Sun, 27 Feb 2022 00:27:40 -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.3 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_FMBLA_NEWDOM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 ; Sun, 27 Feb 2022 00:27:39 -0800 (PST) Received: by mail-pg1-f176.google.com with SMTP id o8so8784009pgf.9 for ; Sun, 27 Feb 2022 00:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cynJtCeCOpOL2R9h0t4aT5GHJD2UMGiUxkUSX45y5Ls=; b=W+UOqHacr3icFiVHG11ArbghFGF2oOhWvZ2F7PcSvVyREZeco8LgCwai25XObvI1oF bVcyzaQ9y8ChcBr00G3fJClUNPLpIuP5tXq3GVYA+qmGQ89eGt535Z5W5Jti78ylDb5A p18BbPmQhRsvk+366Fau/3quEQWZDkmidoEqGB+7uuCaajdTqwG8WPrajpCN4Y8jjex1 BHwPm9lJLQExNtoGv2nrVwTkYes2+/ticiq8jKILHRKDTFNCx+dNCny76RaugHwzygu6 YEwi+ewMSei2D7SyKdq+CoVz3wOnlegk/omx2y8YVHSWZQiJJOMKkTboexmXjEqtYUPL Nx2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cynJtCeCOpOL2R9h0t4aT5GHJD2UMGiUxkUSX45y5Ls=; b=Ci5ckdLw85JsQF2jbmmygG/LoRlYBg5c88PaRX6NkXQptaybYLqkmZJLQ0OaK2EgMb gp0oii6cbpK+VAzDNhhnb0c3xnXLrNucNppZP9qDHaIAea3S+aWxZwZId9/FwtH/xmx0 swVqkBfdpJjAsoV2YWdVeBGROondi8OCouiehok2RE4+T9GhQvFTFw2Bx+vk8qyDxyMw Y4ZnA2/ZikUQePikCXjmCz7//XEbziAViyP8peHocHmbkeWREa/jIlAJFuNNpOjyd+W5 SaBoKHbA131EdmxWVOomw4HzVGb+kkF4skU6AHwbKhgc7DzCFYad6/1rHkqSLMnJXuci wsVg== X-Gm-Message-State: AOAM5333/LINzoIKc5EP5mDyQDY7gPmONiwJ5ijm32D+raA0ULvnVc5Y HzYoB9C3U+M6uWTXthMV4u5f1WPRaQMcWydEXdg= X-Google-Smtp-Source: ABdhPJxZ2ahSfE++eaAn+qXzuC9fuz/u9Zc6Ro37J0DLfq4urErUdVEOCrukTeeFnLXn6zJBfUtzJtYs1DSyKr2NxwA= X-Received: by 2002:a63:4405:0:b0:376:a781:c9da with SMTP id r5-20020a634405000000b00376a781c9damr9487509pga.40.1645950457931; Sun, 27 Feb 2022 00:27:37 -0800 (PST) MIME-Version: 1.0 References: <621a56dd.1c69fb81.67b1.242aSMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: Date: Sun, 27 Feb 2022 09:27:26 +0100 Message-ID: To: Kamil Tekiela Cc: Mark Randall , internals Content-Type: multipart/alternative; boundary="0000000000005ced3405d8fbb4ce" Subject: Re: [PHP-DEV] Re: Proposal for RFC to remove undefined array index warning when used ina ternary From: landers.robert@gmail.com (Robert Landers) --0000000000005ced3405d8fbb4ce Content-Type: text/plain; charset="UTF-8" > > I would be against changing the behaviour of elvis/ternary operator. > However, I remember seeing past suggestions to implement another operator. > One that would fill the gap between null-coalesce and elvis operators. If I > recall correctly, most of the time, these proposals end in consensus that > such operator isn't really needed. See > https://externals.io/message/89292#89292 and > https://externals.io/message/101606#101610 > Maybe, it would be worthwhile to refresh a discussion about adding such > operator to the PHP language? > I think it would be a worthwhile endeavor. Back then, this was only a notice that could be ignored for the sake of brevity/conciseness, or just to keep close syntax to a ported library from Javascript. With it being a warning, it is much harder to ignore and there is no as-short equivalent. --0000000000005ced3405d8fbb4ce--