Re: [RFC] Loosening heredoc/nowdoc scanner
| From: | Rowan Collins | Date: | Sun, 31 Aug 2014 00:10:44 +0000 |
| Subject: | Re: [RFC] Loosening heredoc/nowdoc scanner | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76974@lists.php.net to get a copy of this message | ||
On 30/08/2014 22:26, Robert Williams wrote:
function foo() {
$string = <<<
THEEND
This is the document text. Any
whitespace appearing in a column
that’s before the starting token
is automatically ignored for all
lines.
THEEND;
I like this idea, at first glance.
I’ve not given this solution deep thought, so I’m sure there are problems I’m missing.The biggest one that comes into my mind is how to define "a column that's before the starting token" if there are a mix of tabs and spaces involved. -- Rowan Collins [IMSoP]