Re: Quotation marks considered harmful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/4/06, John Hicks <johnlist@xxxxxxxxxxxxxx> wrote:
Why not develop a language syntax that has distinct open and close
string delimiters?

I consider HEREDOC to be the answer to that kind of prayer.  For quick
one-liners I find it overkill, but I felt so freed when I discovered
it for creating large string blocks, like HTML templates with PHP
intermixed.

The only thing I wish HEREDOC could do is evaluate functions within
the string blocks.  But at least it will evaluate object methods, so
if you're a staunch OOPer, you're set. (Yet another reason why I'm a
convert)

All other comments about having to escape alternative delimiters are valid.

-John W

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux