Re: [RFC] Loosening heredoc/nowdoc scanner
| From: | Johannes Schlüter | Date: | Sat, 30 Aug 2014 10:48:44 +0000 |
| Subject: | Re: [RFC] Loosening heredoc/nowdoc scanner | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76965@lists.php.net to get a copy of this message | ||
On Sat, 2014-08-30 at 18:33 +0800, Tjerk Meesters wrote:
>
> The closest I could come to a rebuttal is if there’s no real need to
> make the syntax so restrictive, why not make it less restrictive?
>
This is a good criterion when adding a new syntax. A change to existing
syntax features needs further arguments. Mind that such changes not only
impact BC for existing scripts which in this case can be detected
easily, but also has to be reflected in tools like IDEs which have to
highlight it correctly based on version and developers have to learn
this (need to read long heredocs with more attention as the terminator
might hide more and developers have to be aware that when using the new
form their application won't work anymore on older platforms, this is
more clear with distinct new features)
Overall I'm +0.25 on this change - the current limitation annoyed me
often enough, but the cost of such a change (see above) is too high
compared to the tiny win.
johannes