Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112160 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11303 invoked from network); 3 Nov 2020 17:27:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Nov 2020 17:27:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 12EC9180533 for ; Tue, 3 Nov 2020 08:48:25 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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-Virus: No X-Envelope-From: Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (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 ; Tue, 3 Nov 2020 08:48:24 -0800 (PST) Received: by mail-oi1-f171.google.com with SMTP id m13so9939237oih.8 for ; Tue, 03 Nov 2020 08:48:24 -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=EWwa/CoUyOT/qGgovYmA7OrAdoIMs6KzCcUxd21bWUI=; b=UgZTeo8PGyr343Q51lCyRBTcQOMPOP6b94W745Omjyvdes+hR+L0z3L4YFSdkeGt0Y fLSwGD8uaMmBWtt2RaDe9gnJYrgH3DQWlnjRsOE12UGOgnrRGFrIr2GC7ybbab/qk61l DoEYIvDz1zgB6bkY9iWHhFFJ3CkXQEmNyRLCEkpm+NdOul2uSMcWumtLSys3fH+52qnB 1o4vFtS/dkGSRigI2cxVkxCpN2RN9Vpjqa4SGw3RYJrGS9Uc+mSdvdC2xzGSb/5/HpPB W+gyeutGCxXo6kDN95qt6Y9NF3+IRg1iyiLcQqeeGhSHLme8GorMqH1hnzXBEJgRh76s wtxw== 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=EWwa/CoUyOT/qGgovYmA7OrAdoIMs6KzCcUxd21bWUI=; b=efeferiMCu3a4C+L/BRhZAc5y4YnlhvaqxHHOhoihxfqNPz93t0tY3jT4qStqbVBIB TxbItVWeu4Fz9Lk1S7LLd3QrLjv6VzNJ4fEmULCd38gwYxrZYUXL3n0tAQ7uIgDG2FkT lCMbmTmCUc0VCq6k5EuZM0jIPLqCL12xACzcfsz8vIu+l0nJytOr5EkaE533D66Yoewl lOJfrKVY868P2ixy71jnV60tG02v8kzLmdcAatQnFnY4LoNaDo16mfO+eCXFflq0B2tt gOeeGTtNeM+BY6ztmqXPmcyte/aPn75Ry9gkKEcdPQnkC/DKSDxGKGx6dAQCPkLI3h3U sX9w== X-Gm-Message-State: AOAM532os1DmvLyziFOaZv25Ajz2ftjvUOysJN5DdVuSdOP+QYfYYZ8q NK0C1ikKSWuswYp6TtncEzIcnXf+GE7Gs2mnPF4= X-Google-Smtp-Source: ABdhPJylfApDjS+i/XMSoEllejoI7stl4yLkF3S3Q/vP+t1ZpcxUVUpqBLDV3QonePkBUDJR+X7hIDoCdnd34Cbp/eE= X-Received: by 2002:a54:4011:: with SMTP id x17mr28763oie.142.1604422103723; Tue, 03 Nov 2020 08:48:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 3 Nov 2020 17:48:12 +0100 Message-ID: To: Eugene Sidelnyk Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000008ff1e105b336a150" Subject: Re: [PHP-DEV] Nullsafe From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000008ff1e105b336a150 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 3 Nov 2020 at 17:38, Eugene Sidelnyk wrote: > I am wondering why don't we use ordinary `->` operator with safe null > handling? Hi, - changing the current behaviour of `->` would be a huge BC break - and if we need another reason, there are many situations where you do want to fail early if the left operand is null, so the current operator is a good fit =E2=80=94 Benjamin --0000000000008ff1e105b336a150--