Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117309 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59609 invoked from network); 12 Mar 2022 09:47:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Mar 2022 09:47:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 22BA21804F8 for ; Sat, 12 Mar 2022 03:11:20 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,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: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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, 12 Mar 2022 03:11:19 -0800 (PST) Received: by mail-wm1-f52.google.com with SMTP id c192so6521089wma.4 for ; Sat, 12 Mar 2022 03:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:user-agent:in-reply-to:references:message-id :mime-version:content-transfer-encoding; bh=dtjJyAXewyjpRsaZZ3Acs+hAPbjzrvXT0qj9ELZWwHE=; b=jGbiE2d6q5jQSTHeqyFSRb7/bV7JoyvWwr7/+NHIUSx0QJwWe27VPtoHqKCrlIDWsN jQ9pXJfsOzISYLy+MiqdmHBWmFqjiGgkIxpyMrlVlcO+JLvD/4Fa9F5JUYFhyTFX0Wwu Nrf4m2R9Q/cc5krWB0QhhOBBWejgpI1TCJxw8xcL2Yd5wj/7U0gFQzx7irPgS9K1wgVA aG0S0ZJrpvJ/S1AXXv2zjiM7pi9OOm+Nx26sT+BIcbO9hiNjzf4YAsJzWnQvPfNY6wc2 J8G7dmvOmCouRsqVUELfxSonl7JtCDN2NREyBhbqW4HRKq8EI801SrAjuJbxuo/vGDeu UrXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:user-agent:in-reply-to :references:message-id:mime-version:content-transfer-encoding; bh=dtjJyAXewyjpRsaZZ3Acs+hAPbjzrvXT0qj9ELZWwHE=; b=p8wVXnw+ce3jYtzHG09z8cx69E/hO9bm4r8Z8tmU9KEpLxtd0ojXDPBu9IAn20coC7 Vt9aRNUMp3CQa4QLTQz/rT7n5kSNYb9cw7aLjrd7oFMzEcuuPAcgph9j+83wDgLMRTxT zgu1qp0VIU6TORUoMGC3lwofmcWfRx2VnQ+BNIjwUt1rDHh9pepdvBsfOMctTwG+8W3C iMAFP/hNjQohxzTS3QT5LltvP/DNDF7yEB2ASazG1RKrMxTlg/yJJtnjz0GMuR+sgVD4 c/lqb+w058AxBrfo41zfzc4+nta67tPxWjkyg27Uojs7Y7kz6uW2Qa9EcGHEgjffC9V8 wDyA== X-Gm-Message-State: AOAM533m8DGb5jiTAy3jZ6yhKh8P/gLZNUphlHgkafEp9cMtOo8PbcYy +zNtplVdU7ScC3CCZBVCS4NQE22fUZ4= X-Google-Smtp-Source: ABdhPJwGyRMkMzcSTOGApFe4YOaEbLpa5JDmWatuzLEgTVzFR2O+kpQVrb8Y1/oK7S7CpxGB9KWRRg== X-Received: by 2002:a7b:c955:0:b0:389:8634:88dd with SMTP id i21-20020a7bc955000000b00389863488ddmr18752197wml.189.1647083478572; Sat, 12 Mar 2022 03:11:18 -0800 (PST) Received: from [127.0.0.1] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.gmail.com with ESMTPSA id u11-20020a05600c19cb00b00389efe9c512sm3767140wmq.23.2022.03.12.03.11.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Mar 2022 03:11:18 -0800 (PST) Date: Sat, 12 Mar 2022 11:11:16 +0000 To: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: <20220312031138.5e0669a4@platypus> References: <20220312031138.5e0669a4@platypus> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D=5BUnder_discussion?= =?US-ASCII?Q?=5D_Deprecate_=24=7B=7D_string_interpolation?= From: rowan.collins@gmail.com (Rowan Tommins) On 12 March 2022 02:11:38 GMT, BohwaZ wrote: >This RFC is confusing two different things: > >1=2E variables inside strings (options 1, 2, 3) >2=2E dynamic variables names (option 4) > >The 4th one is very useful=2E > >$v =3D ${'param_' =2E $name}; > >There is no other practical way to do that, so removing that feature >would mean breaking something useful with no replacement=2E I don't see anything in the RFC that would break that example=2E The RFC i= s *only* about how variables are interpolated *inside quoted strings*=2E As pointed out in the RFC, this syntax looks the same but works subtly dif= ferently inside a string, such that (string)${foo} !=3D=3D "${foo}" (one de= references a constant, the other doesn't)=2E Full handling of variable-variables is available in the full interpolation= syntax, "{$=2E=2E=2E}", so "{${foo}}" *does* give the same result as (stri= ng)${foo}, and "{${'param_' =2E $name}}" gives the same result as (string)$= {'param_' =2E $name}=2E https://3v4l=2Eorg/aRMaq @Ilija It might be worth adding the above example to the RFC , to show tha= t "Option 2" can actually do everything that the other options do and more= =2E Regards,=20 --=20 Rowan Tommins [IMSoP]