Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111595 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9546 invoked from network); 17 Aug 2020 19:00:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Aug 2020 19:00:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 63DA518053A for ; Mon, 17 Aug 2020 11:01:40 -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-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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, 17 Aug 2020 11:01:39 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id a14so13030638edx.7 for ; Mon, 17 Aug 2020 11:01: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; bh=LWbPdfE05HwcJg5c72U2gX8vlkkJWf6zUtfzZsgQs+Y=; b=m08bymmcsM+4PY4pI5J1loRYxtzuSI5SuQhGQIF1FzKsOXlZ0o6PlD5s4hrWUGxX1I pxCxli8d8y4AO9uAxLfSdEikEMPA9BZ6gYIEHJ3cZNJ7kX5Xsr7WQmaGZyJ7j9BECxOz c+kNxj9IXBwHFskx2MemX+/zEYlaI8CrEv50iL96PzwfVXOfwlAJTQRmKeF2jIb0xTz5 xZTeqr7P/SEozCyrKuFePdnzvhCMsy9BWF0LsvNvqnq5lxVru2Bp4X1wVYq7p1nXDbTy 2CRxzmbUBWbPFMzmA+M0WsN+7cMzP1FJnBFdIrOztc8EqebogtdZRg5aSy5jK/1JBFqt 6AOw== 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=LWbPdfE05HwcJg5c72U2gX8vlkkJWf6zUtfzZsgQs+Y=; b=qwLRnyjAx2Y1qrsSyTDFy+1PoHJaoUjrsk8g+Kkf5IeTNcbbtitfZGJJCeJXjAq994 7ehVWiwWXdgB36Hm2eC3c5Um9ogD7w2srf8ETBcITnLn/g1SjA9LraFhQAP51IzzmG/H rPueCuy/TzCpxGAXLDa7szbIZhj4Xfh+6yg34WHQXS756UcySLsebqOCBIsUooNlJTVE U7j1rQSVNfM4Z2uGNj/0zT+MiAwDrV3za5sv6brR2UphhFWzooB91dH092TEbTIAoqKL Q0prH7Dj6CcoEEzOXMcK3m/gyygPraWfkODCiCT2rqP6/1UdR5QpdUu1fLikudf9I0po t8hw== X-Gm-Message-State: AOAM532BUUFYzpAylJ/jDA1AwkAuzBRqcqJXlclEgzesBpUtDhONUNz/ EDdAqo/KtPq2GsgectMfI0iZn8yOKJC7SSjxfP8EN8Dps0bS7Q== X-Google-Smtp-Source: ABdhPJyci02y3CQ3vtEXe3Xhg3BpNB4lX+SdPyeCOImejAc+WnjxDRhAV6pL2QcZnyR/nCQQ0uflaiNBXvS2Ff+Qbso= X-Received: by 2002:aa7:d84d:: with SMTP id f13mr15616396eds.155.1597687296796; Mon, 17 Aug 2020 11:01:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 Aug 2020 20:01:25 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [RFC] Better string interpolation From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Alex >> I've been thinking about ways to improve string interpolation. > > Using a prefix for strings that have a saner interpretation reminds me of f-strings in python 3. I would suppose you know about it already but I'll leave a link here anyway: https://www.python.org/dev/peps/pep-0498/ > > Maybe f can be used similar with how it is in python but I didn't gave too much thought into it. I'm a casual python user so I need to understand more the history how they got to it. According to the RFC the f stands for formatted string. The $ I chose comes from C#. I don't feel strongly about either option, I think since IDEs will help with syntax highlighting it probably doesn't matter too much. I might look into other languages and create a short overview/comparison. Ilija