Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112309 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57211 invoked from network); 27 Nov 2020 17:18:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Nov 2020 17:18:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 25B141804D8 for ; Fri, 27 Nov 2020 08:44:39 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 ; Fri, 27 Nov 2020 08:44:38 -0800 (PST) Received: by mail-ej1-f46.google.com with SMTP id f9so6252245ejw.4 for ; Fri, 27 Nov 2020 08:44:38 -0800 (PST) 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 :cc; bh=9LZRCE0zO9hcgJNYaL24SMEQtGOE1ZyRCZiD21Hdl8s=; b=tlrcpPYTzIVsG+veRmrCvJa7YgUKrqhph28tQ0nt76YrBOsr/+WhCpnzEt9VRIK/KB Dmqh4zSWvxQYOsKlg0N/LQjJ7F/BUfdLNiX8s1Q5BoV5dYl7OSwPXzAe2fsCs5xuzf1w V14jIc1XonmnbXmx1kcVrea5EMOVo6ziOpSfDxnqGbyhY5lhTh6F4o8puNsVaLK4Ghtw z2/FiAfZonJyFwNijmJQE8A7FAO8DdMyhIS4+cfsEkfT9Edjun9posHkYLONSLisow0O pobXsYo6smptGKyx6VcnCMiIpKREJhFe5ce7QMfF4ZESm/iqmTlCRInqUgGBFM4i/PQo ZEgA== 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:cc; bh=9LZRCE0zO9hcgJNYaL24SMEQtGOE1ZyRCZiD21Hdl8s=; b=AoMjS4pEhkvK76xPLNyVffwuvz5YsH1pCIEoQdOX2+afujFvOL0Z+0Z5yFA16WfYGP BMISDmtE+RXU/TgtDsBVKKFWiFXwhLvhfVu0IPPMBjMKpblG9aoAynju20GqIKso0IAn 0ZsaUJBHTCui3W1BcKhSxGqOhqUIkaYEA4wn+7zm0SiEibdwONqO7OXWk+X08GMx8/30 xMlWqJOa8QnaIW8LOhruYXpr2GUxqxChhcY3iz48nKoZZcbajRGJClkEbkD2nHMQimJN GwJ5Zq2y11E181E9mCA2lS0WSmBWLM/rjwSXPbZAMaiOalTbIZVMogW8RsJTlZXWC9Lf Pk2g== X-Gm-Message-State: AOAM530quFhIXxIB4ZjSglIpAxVAh7jualMwxqjNiUSm1i1siuqs2Em4 U/Fwce5eNrYPGsNCMzh1illz2oQ4C2c+JASUEtE= X-Google-Smtp-Source: ABdhPJzsVWE7P4HRyxTz90x7SNJJm8d259H7liyU4a6Ve4JxndQO/nHiG8bswAbEdvEEas6+EAZpEE+DC+0BL1Fx0/8= X-Received: by 2002:a17:906:378f:: with SMTP id n15mr2431836ejc.263.1606495477569; Fri, 27 Nov 2020 08:44:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 27 Nov 2020 16:44:24 +0000 Message-ID: To: Benjamin Morel Cc: Sara Golemon , PHP internals , Roman Pronskiy Content-Type: multipart/alternative; boundary="000000000000461db705b51960dc" Subject: Re: [PHP-DEV] Thank you to JetBrains (PHP 8 Announcement page) From: george.banyard@gmail.com ("G. P. B.") --000000000000461db705b51960dc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 27 Nov 2020 at 16:42, Benjamin Morel wrote: > I really like this page as well! It will definitely help improve PHP's > reputation and adoption. > > I'd like to suggest a couple improvements, though: > > 1/ Match expression: > > The new match is similar to switch and has the following features: > > (...) > > *+ Match throws an UnhandledMatchError if no match is found* > > > 2/ Nullsafe operator: > > Instead of null check conditions, you can now use a chain of calls with t= he > > new nullsafe operator. > > *- When the evaluation of one element in the chain fails*, the executio= n > > of the entire chain aborts and the entire chain evaluates to null. > > *+ When one element in the chain evaluates to null*, the execution of t= he > > entire chain aborts and the entire chain evaluates to null. > > > IMO, "fails" could imply that an unknown property, or a property that > evaluates to a non-object is acceptable. > > Sorry if these suggestions come a bit late, now that translations have > landed. > > =E2=80=94 Benjamin > PRs are always welcome on https://github.com/php/web-php :) Best regards, George P. Banyard PS: Please try to remember to bottom post and not top post. --000000000000461db705b51960dc--