Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111401 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59879 invoked from network); 9 Aug 2020 20:01:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2020 20:01:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DCFEB1804E3 for ; Sun, 9 Aug 2020 12:00:26 -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,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-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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 ; Sun, 9 Aug 2020 12:00:26 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id a5so6779863ioa.13 for ; Sun, 09 Aug 2020 12:00:26 -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=I3FMsbwwvQeEQSQCSMmWr4rT5cL5TcSzGrKE+PdWh5c=; b=k4TQlL2ch8GT+EA3WwhbGpu81jA+nBt5c5rDBPLlnKn/Sx2uR7zhtlG9KzF0KiQ6B5 YQmNrG3AwEYU0d2KNbxeVBgSb7LwkdGUYkracWVCY9eSREPsCNK+6kXEih1V+Pi0WDZp 8DgNiBBnbZ+piuqXcM0kyD8jqUXmE+zbccp/FrB7Z+ex+SKAVpCNuQaFiugBhzQGJJ0f bsAXk1zRRjCpaKKyiM2WTyn+WcdRfDYQmiPAXeO4QsuyMGURf4L3jnJOVel0qgBaODPI cYlx0tNsz0YRmf3oFjQUm1i24dZRj5IpQmCKXYDuNQvqLqA8QjzaKZqpMVpEIxpb4I/q cUaQ== 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=I3FMsbwwvQeEQSQCSMmWr4rT5cL5TcSzGrKE+PdWh5c=; b=pQAKpSxV6riCpQk9hQIT+5fI6HpcmUS2XMz/cjOlC2STxkN8K//PBfka2GSDfQ7x1D huDlARsge0XoOMuJop5RqjL/8v6VCJWS3jWuyyZEFOeoLCPH1My3aenrSRGPKJAQswPX zEMyBUTnRSi0llIERVRwcRkKExlyN0KtSctf1OIQFB1UIAWxBgNwq3lHKgjqCtW/cgj+ eJ2nIud+m+MdZMcP6wxKGkbhJeuRZcJwJNhy1fEt8iu1kZJn965bUPex5uqAvYs2SER2 TPOFTzz49qt4bLrtycw7+UWh4UdoKj3/6ANqVduAkly8dC++56DR8vTVtJrxdcx695hq 3a0w== X-Gm-Message-State: AOAM532WySgWi/vaEwX7zjTcjJm3wqEXqsdw8+mAu4SYllvbgfgH35Kg 68VXWA0UTJi/JVgEAsYSl/2fZ+iRwxXBP36X9NPK0kNN X-Google-Smtp-Source: ABdhPJzV42cOkcbRzcRNIiKzUG1ppfdbrA8IlUFgBS2QJvURzVzRykGNEsEOiH/0/GyOh8917ASRW4BEttW6osY6RAQ= X-Received: by 2002:a6b:c906:: with SMTP id z6mr14570316iof.24.1596999625731; Sun, 09 Aug 2020 12:00:25 -0700 (PDT) MIME-Version: 1.0 References: <24ce93f7-b5b2-fb63-6ea4-032c4e71f049@seld.be> In-Reply-To: <24ce93f7-b5b2-fb63-6ea4-032c4e71f049@seld.be> Date: Sun, 9 Aug 2020 21:00:14 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000065f97705ac7673c7" Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: deleugyn@gmail.com (Deleu) --00000000000065f97705ac7673c7 Content-Type: text/plain; charset="UTF-8" I like and make use of interpolation, but I can't think of a use case for this. Is there any valid use case that would benefit from this fix regardless of personal preference? In other words, where would one use string interpolation with an empty string being a valid case? On Sun, Aug 9, 2020, 20:34 Jordi Boggiano wrote: > On 09/08/2020 00:17, Sara Golemon wrote: > > Do we expect this to work? > > > > $foo = new stdClass; > > $foo->bar = "Hello"; > > echo "$foo?->bar world\n"; > > > > Because at the moment it doesn't: https://3v4l.org/nLv3l > > > > -Sara > > Can't say I'm big on interpolation but I'd definitely expect this to > work because why not? > > I think if it can be reasonably fixed it probably would make sense for > consistency and WTF-avoidance if anything. > > Best, > Jordi > > -- > Jordi Boggiano > @seldaek - https://seld.be > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --00000000000065f97705ac7673c7--