Re: [PHP-DEV] [RFC] Loosening heredoc/nowdoc scanner

[email protected] (Johannes Schlüter)
Newsgroups php.internals
Message-ID <1409395725.6881.121.camel@guybrush>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.