Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111389 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12782 invoked from network); 9 Aug 2020 12:50:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Aug 2020 12:50:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D1B481804DB for ; Sun, 9 Aug 2020 04:49:39 -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-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 04:49:39 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id m15so3263969lfp.7 for ; Sun, 09 Aug 2020 04:49:39 -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=b83bd7iCKQ3S4ULWPXJJmEr7sAD8+tOJAbuh9Nx83vo=; b=HYDr5cHZF+UDgOYCZZEpmKi2IHFxp85D3FM2AgzokCE/s+3LRenJY0S2aojasWQwFV sx9gEQM/7VXW5NvsQLW7nJGnndnugSTd8xm03AEw2vIXfiAeEIJpbKEpL3ZGWnqLc8ZI bMgeN5FFNJXFuZ3Xq9cISorrpTJhSyQ+u+r9MFqNUQwXPL4wne1Dkf3sWHcVYbadfeGD 93tc9lfcPHQ5RiMzQ/0heSCrul2TWG/Lq+BIAtd997vOacPuOWpq0s7xIM53YlY0pOD7 O55HS0wkQ8aI+O0ULQ2cQdkwIPA5jtp+jhPDImF46MYyfG/2fIlXOT4G85a+O03B0haj xaWg== 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=b83bd7iCKQ3S4ULWPXJJmEr7sAD8+tOJAbuh9Nx83vo=; b=XlG+vr68KfY8PDC3aUoL8TXvsTpExwyk1qA7WREuuHGGmL+cq9zaBMVtdguaxxlTIE 1UwkqPeyBL8jv3K9ST+aymz6x7gL8bZtMuha/Uur/D6GOzGKeEJYZaaY7EB9FcIlL0+p lXYOo2kr8D4Cibwb1Aq4PmUmUAxWwcn0HIYEGfix5Dn1vaNmYoSbdkz/YjbSsho7sxoJ 2GwwkQzXCiC7rP2HLktRmoh4aeLSxHnwOFILOuwlG2RB2jEUDiHO8LlbSDdx4/lBmG7R DXzfQgZWKmce6PZ7tisGjFWypzFFqXDgW+CQilaPA0h+QuSPjloUhrNmn0HUWaABcGpD a6og== X-Gm-Message-State: AOAM532tu/aUabrmdg29SXUs/ANzOoELdTtRI3aveD+/j1Tp1RDp4LU3 G8vD1H8f4MaqhBCSGKLydWlgmUUmjdb9kGERbos= X-Google-Smtp-Source: ABdhPJw0CXyzbMCh2XbJSHvfw8/+UES6WR79uyYsQ4HrE+3VxFblvsUWGCfdHSgzFzfl/PFiusMPxLUghlcctkePWfU= X-Received: by 2002:a19:84ce:: with SMTP id g197mr10671742lfd.73.1596973774823; Sun, 09 Aug 2020 04:49:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 9 Aug 2020 16:49:22 +0500 Message-ID: To: Marco Pivetta Cc: Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary="00000000000090669c05ac706e76" Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: yousuf.tafhim@gmail.com (Yousuf Tafhim) --00000000000090669c05ac706e76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable What are the good uses cases for this to work? On Sun, Aug 9, 2020 at 8:48 AM Marco Pivetta wrote: > On Sun, Aug 9, 2020, 00:17 Sara Golemon wrote: > > > Do we expect this to work? > > > > $foo =3D new stdClass; > > $foo->bar =3D "Hello"; > > echo "$foo?->bar world\n"; > > > > Because at the moment it doesn't: https://3v4l.org/nLv3l > > > > -Sara > > > > Ooof, people still interpolate strings that way? > > Good riddance if it doesn't work: this code is questionable (and not just > because of the question mark in it) =F0=9F=91=8D > > > > --00000000000090669c05ac706e76--