Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74295 invoked from network); 12 Feb 2018 20:54:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2018 20:54:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=alice@librelamp.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alice@librelamp.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain librelamp.com designates 45.79.96.192 as permitted sender) X-PHP-List-Original-Sender: alice@librelamp.com X-Host-Fingerprint: 45.79.96.192 librelamp.com Received: from [45.79.96.192] ([45.79.96.192:34576] helo=librelamp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/07-26725-22FF18A5 for ; Mon, 12 Feb 2018 15:54:58 -0500 Received: from localhost.localdomain (unknown [IPv6:2600:1010:b00f:12eb:8f2b:f3e9:8c8e:a89d]) by librelamp.com (Postfix) with ESMTPSA id B06391144 for ; Mon, 12 Feb 2018 20:54:55 +0000 (UTC) To: internals@lists.php.net References: Message-ID: <6f4c89c9-4670-a429-eccf-ec1baadd9951@librelamp.com> Date: Mon, 12 Feb 2018 12:54:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV][RFC][DISCUSSION] Deprecate the backtick operator From: alice@librelamp.com (Alice Wonder) On 02/12/2018 11:43 AM, Wes wrote: > Again, the reason is: in case in future PHP wants to use backticks for > unicode strings, like javascript. > If the community think it's feasible, in PHP 9, 10, whatever, it must be > deprecated asap. > If you think PHP should use a different syntax for unicode strings in > future, you vote no. > It's as simple as that. I am asking to reserve a particular syntax for > something that could be needed in some years. > backtick to execute a shell command is fairly standard in unix shell scripting. JavaScript is not used for unix shell scripting, php is. Not commonly, but I've used it more than once - especially when I already have a php class that does something I need to do from a shell script. It's a lot faster to write the shell script in PHP than to port the various shell scripts to python. There is no good reason to remove it, and use of a back tick for executing shell commands has a long history in many scripting languages.