Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110401 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36855 invoked from network); 6 Jun 2020 18:26:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jun 2020 18:26:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 403E21804C2 for ; Sat, 6 Jun 2020 10:09:38 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.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 ; Sat, 6 Jun 2020 10:09:37 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id r18so6650317ybl.5 for ; Sat, 06 Jun 2020 10:09:37 -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 :cc; bh=kwCkt1g7DOEDButAxm0ll6fMklqovL7BF3nldZVZPqc=; b=L3misVtDuOAY08Fi1MXgN22UYzvJJV8zlV4GPneWKvgCXJwdNkWkxjS3xmSrh/Q9iT N/gFeTcJQAcFoR7Q10NMKSZptOjZIbiAoJdB74m/v9xGiPtmYp2Y3wyDVaISd5EPcHrI Ol91Gxk1ikANvY0Jp4JbeaNjRKi1Q+WWF/UhrKW/TWGnza7cu+q+mA02r2JQ80ln1V41 gnNHDyGxK863hx1xYL5fAdwLzxnySUlXxi2o0OvWXefLCHEQMLFwRU0lzkXe7Y0xyUgH 66FNUs1ExJ5Qpou90y1BMMPExC4kij0VGlLSQvpZBflkqjrk3ez/irHJTv8FQOyEU1Ds t6AA== 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=kwCkt1g7DOEDButAxm0ll6fMklqovL7BF3nldZVZPqc=; b=ZrTHMzsfyKdGQO0OPhCK+GlwIkzEiBT46fzfd2yQDMeLkU3NMGC5DPr3Ik4n1Z3TW7 sZvthdo5IXvA/ZW1jsEsw/GeU+bdUeLX7W8EF2a4WPkQA8HtkDTgxSqBSs+Ypfe3U0yo tE2bd41lwfPN7TJnCga9fG2AQaK5/H4i851TrgEv6xEBgp3Ahbgx5aDZN1CcbJLHX6oI YG+Xj5PdUFfkzaqarNhYhhHFkNe4SQKlv1IB+yuUDWsPBBrMm7VuGMAAbmLRIZkoGUDJ cu2B6ZtMFOLNKKxWGrTdhsWAsO6FijID65GavXnMF1+tHi/LC3lO7QeIsNTtH4o5IyiK POTA== X-Gm-Message-State: AOAM530Ux2EzzhRbcodXddOHxJ0SEpKuDXOzVaD/2prm4T18pvY9r3Gy rasK4bSgWK7ENxCp4VsPxVSGtyRb/6LOvhc2bEI= X-Google-Smtp-Source: ABdhPJx40oozMtqe9bZe64FBw5u1NgZ7Q1GtgL3yH9aO3+4UQST7MakrGGAwhckJQ/izxp9vkL2ifPb+gf8yetZOI68= X-Received: by 2002:a25:a165:: with SMTP id z92mr24656505ybh.48.1591463376519; Sat, 06 Jun 2020 10:09:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 6 Jun 2020 19:09:24 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Nullsafe operator From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nikita >> I'd like to introduce another RFC I've been working on: >> https://wiki.php.net/rfc/nullsafe_operator > > The semantics look reasonable to me, but I'd recommend including some > discussion on the rationale behind the short-circuiting behavior in the > RFC. That is, what the options are, and why this is the best option (which > is not the option that the previous RFC on this topic picked). It would > also be nice to cross-reference semantics of ?-> in other languages that > have it, to make sure we don't introduce any unexpected WTFs for people > switching between languages. I think the specified behavior is consistent > with what everyone else does, but I haven't checked to be sure. Thanks for your feedback. I added a short analysis of the most popular programming languages as well as a list of benefits and drawbacks of short circuiting. We might still go into detail on what the languages that do short circuiting consider part of the chain. If it doesn't clutter the RFC too much I will do that. Ilija