Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7728 invoked from network); 30 Aug 2014 06:08:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2014 06:08:16 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.67 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.67 smtp67.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.67] ([108.166.43.67:49522] helo=smtp67.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/20-05306-74A61045 for ; Sat, 30 Aug 2014 02:08:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp9.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 4960738013C; Sat, 30 Aug 2014 02:08:05 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp9.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id E9542380156; Sat, 30 Aug 2014 02:08:04 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Sat, 30 Aug 2014 06:08:05 GMT Message-ID: <54016A45.1010900@sugarcrm.com> Date: Fri, 29 Aug 2014 23:08:05 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Tjerk Meesters , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Loosening heredoc/nowdoc scanner From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I would like to propose a few changes to our heredoc / nowdoc scanner to make it less awkward to use inside other constructs. > > https://wiki.php.net/rfc/heredoc-scanner-loosening > > Let me know your thoughts :) With this proposal, you will not be able to use the delimiter inside the text at the beginning of the line, which is a BC break and may be a problem for some code. I'm not sure saving one variable assignment, at the expense of making scripts less readable and breaking BC, is really worth it. How often you need an array of heredocs or concatenate two heredocs? How often it is a good idea, readability-wise? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/