Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115135 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67710 invoked from network); 25 Jun 2021 06:58:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jun 2021 06:58:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 53F711804C3 for ; Fri, 25 Jun 2021 00:17:34 -0700 (PDT) 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.5 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from processus.org (ns366368.ip-94-23-14.eu [94.23.14.201]) (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, 25 Jun 2021 00:17:33 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by processus.org (Postfix) with ESMTPA id 8BC905101324; Fri, 25 Jun 2021 07:17:31 +0000 (UTC) To: Eugene Sidelnyk , PHP Internals References: Message-ID: <929ae0be-fc39-1444-8912-170e2f5fd840@processus.org> Date: Fri, 25 Jun 2021 09:17:30 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Authentication-Results: processus.org; auth=pass smtp.auth=pierre-php@processus.org smtp.mailfrom=pierre-php@processus.org X-Spamd-Bar: / Subject: Re: [PHP-DEV] Re: Nullsafe Types From: pierre-php@processus.org (Pierre) Le 25/06/2021 à 08:58, Eugene Sidelnyk a écrit : > I would really like to hear your thoughts on this. Hello, As being a user of more than one language, in which at least 2 have the same nullsafe operator (PHP and TypeScript), I'm used to this syntax, it's clear about the intent at the cost of a single char. It places the nullsafe intent where you actually use it, instead of making it implicit on a whole composition chain, which would then create nullsafe behavior to be "always on" in the whole composition chain and very (very) hard to debug. I think this would create too many side effects. Moreover, your proposed syntax is very hard to read, in my opinion, and will probably cause confusion. Regards, -- Pierre