Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111441 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 85912 invoked from network); 10 Aug 2020 16:07:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Aug 2020 16:07:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1EB71804AA for ; Mon, 10 Aug 2020 08:07:03 -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-Virus: No X-Envelope-From: Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 ; Mon, 10 Aug 2020 08:07:03 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id bs17so6650704edb.1 for ; Mon, 10 Aug 2020 08:07:03 -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; bh=mJdbeMwgLOEh+jS3WbHiIAkUQoPgJTu8zDCcqqRN8fw=; b=vgbdjVOKm+A+ZuMpd+9RoVfnv3LqWnJqAiX1j3/9rlBPFO6370ppyvGw2jqRef04vP AI2E07GFkRzUxFNy24LXOTo3QjWnxzx3e2NhMjMB3qV3HihMD9AVyI8Dii69HROrRO+g uOf+S8KLmbQ0fVpCxKqcctQ+xNmB+6ESmtf3HXzc6scb3SjpW3fHaIIyZz8nbUzXA0+p 9qqhrVFKOBJAb//z6pddNcjpR4noCV6Ut6kL+tzGTDt6aeDvD53JyE7wuIf7G+t9IcGL 7uvs9nELZvOecMaTWpzYbXhoYuGR6CYIxbp68FwwxbEGQZAaVll40Xr0byKHfbY5DsY6 gKNw== 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; bh=mJdbeMwgLOEh+jS3WbHiIAkUQoPgJTu8zDCcqqRN8fw=; b=gSiGMnZw0Y79SgWHgN9f9f5N8RTMkcC+EaTGNze/oaODNX7nr4SXhTwIkQDrbUIiHn 7LVcQkNfG9gBhN3QesKOLzaufQ7ZvMTsWUbDsy1GFg2ImZPNvE1PY8UShb/mL9WdndBg D+Y5WQ5vPvncP/3/ZTw1jkOpHDBFuqOVjjguCrNJycR7l7rq/Ih36Jo3520moNaWTk7Z Ua608I5Gcx3yQ2cyXSUZe0L4tXI8/9r0ZS3sxqAPEbfVWx9cdVpi2DJsujzA9nnkbCbh 9q2wo8ewR7GSoRvFQZ4ne24qawuQ/CgCHlyZC6Il+sMLcWg9+5d03i/ktt/oMcVfPlGx Y+Bg== X-Gm-Message-State: AOAM5311NvcJbJHCHP+GtAnF2LbbIIRFKEXBRFh3xTPQJkUDwiSdslbK 0T1EPSES5UwwEaNQFFmk/1SUrIlj8NMeqBsIxkD01A== X-Google-Smtp-Source: ABdhPJxO1C3LdnCLBMleHLCOqXDM7nMmf9AqRsZUYm995fJPZQGeTFBUxVmEt/bFBf/sXbQZKFnWZuPKZYnlZS6rBDY= X-Received: by 2002:aa7:cd07:: with SMTP id b7mr22468349edw.172.1597072021078; Mon, 10 Aug 2020 08:07:01 -0700 (PDT) MIME-Version: 1.0 References: <24ce93f7-b5b2-fb63-6ea4-032c4e71f049@seld.be> In-Reply-To: Date: Mon, 10 Aug 2020 17:06:50 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nikita > > I think if it can be reasonably fixed it probably would make sense for > > consistency and WTF-avoidance if anything. > > Agree. I don't think the question of whether it is useful should come into > this, it's a matter of language consistency. There could be some leeway > here if we say that we have plans to deprecate the "$x->y" syntax in the > future anyway and don't want to extend it anymore -- but I don't believe we > have such plans at the present time. So for the sake of consistency let's merge this then. As mentioned, the BC break should be very very small. A few people have mentioned they didn't expect it to work but when asked again they didn't feel strongly about it. Unless there are objections I will merge this tomorrow. A review of the PR would also be welcome. Ilija