Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115227 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2842 invoked from network); 30 Jun 2021 08:43:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jun 2021 08:43:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2A1D11804D9 for ; Wed, 30 Jun 2021 02:03:46 -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-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 ; Wed, 30 Jun 2021 02:03:45 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id k8so2283313lja.4 for ; Wed, 30 Jun 2021 02:03:45 -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=bVzRMGCNu/zrqm4C4nFiJz7mxkkTFOYqmJh7DMs9PAM=; b=A1dxDAfojAYCuTfVbbfyCAg8avkXB2IFLOS2vsvHeIbb/Fvct1+IvbZrpOAUddHi+0 3jw9awZlb0qXLSntvakby2ROuZmCEN/SngjW7lRA/rQhVoU/oBujDaLfknDztV/JGyX0 ExVwlGGRk7UzTD+X++bzw5B8C9lYvsB6GBNNOltGHQHv+64NASFx03VXjmqzqjDgyUnR Nr0KYZjiaMnK1ISY1GqwDTjx7+VnE5UZ/FjNLjgjbxL9KeJT7+2UUP2nT71WudArOTqH TEz2v0texqAlG6cCSKdDDwqYSCdvsyc+kqI02wqJ0yBYaRMBqvjqKdcRjNakl9I59IQn lYhQ== 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=bVzRMGCNu/zrqm4C4nFiJz7mxkkTFOYqmJh7DMs9PAM=; b=le3U0ZstsFAZS5cIv3QCoN5uczbBrMHDW9hi07j20HqYIb5HvxZ+hBMgFVuKzdme8Q JdY+QRgESCH9dO0jfaMgq0EqMW/K0rMx71tqqC5WzxTYYgjCJcrouhFJECbACnuw8zlr KTfLsNpVFlbloeTPihkkyHr4qAzU8XJOhTGOFS+wjVMeAC66MPgJbCAmtX9MHSB9pHZ9 nihvXYNkwAwfUpSPXHNKdZ7Jw6b2dczR6LAoFNsJPbwP12s9IFMyurKbuiteuTU4Jc3r wmP9TUK9XXtLG6f8ZcEUoluQHlMskShW0v0qj/o1wtRtHU9mFAP+fYqXvOE5f8qskTRj S00g== X-Gm-Message-State: AOAM533jrVoSYhOJLhen9c7faJ+vZTNem+C02xCsto0mEVN7aSIxkxEM vMztAeZSEP+N7LTjrmKldqiJwJjv0dTo2tSNkQ== X-Google-Smtp-Source: ABdhPJwVX5F8trTnM7U9eExzwKcINveKrBMd46yEt2RKuAjIei1l3v/yZxq4bUf0POGGsdElxKi7JmnrKYjdzNDAG0w= X-Received: by 2002:a2e:a4d3:: with SMTP id p19mr7145913ljm.440.1625043824002; Wed, 30 Jun 2021 02:03:44 -0700 (PDT) MIME-Version: 1.0 References: <17a588d53cc.f512f451993137.1114693900572862097@manuelcanga.dev> <17a59fe12e6.bbd740bb1055351.7212410057372869791@manuelcanga.dev> In-Reply-To: <17a59fe12e6.bbd740bb1055351.7212410057372869791@manuelcanga.dev> Date: Wed, 30 Jun 2021 11:03:32 +0200 Message-ID: To: Manuel Canga Cc: Internals Content-Type: multipart/alternative; boundary="000000000000dfcb8e05c5f7fff7" Subject: Re: [PHP-DEV] [RFC] Alternative syntax for Nowdoc. From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000dfcb8e05c5f7fff7 Content-Type: text/plain; charset="UTF-8" Hi, Maybe other syntax could be used, but I don't know which. In javascript > only a backtick is used: > https://developers.google.com/web/updates/2015/01/ES6-Template-Strings . > But in PHP this is used as eval. > Just a precision, because you keep referring to it as "eval", which makes me "tick" (haha): `$cmd` (i.e. $cmd wrapped in a pair of backticks) is the same as shell_exec($cmd), not eval($cmd). (BTW, one of JS "template strings" main selling points is string substitution / variable interpolation, which is explicitly *not* wanted with nowdoc [VS heredoc].) As for the proposal, overall I agree with Rowan -- well, that would not be exactly like single quotes (regarding [not] escaping them), but still "yet another way" to write a nowdoc string literal. PS: "amusingly", the code samples are hard to understand after rendered on https://externals.io/message/115213 -- Guilliam Xavier --000000000000dfcb8e05c5f7fff7--