[PHP-DEV] Re: Bug #8685 Updated: Here-Syntax problem

2002-01-28 Thread Yasuo Ohgaki

[EMAIL PROTECTED] wrote:
> ID: 8685
> Updated by: philip
> Reported By: [EMAIL PROTECTED]
> Old Status: Closed
> Status: Open
> Bug Type: Feature/Change Request
> PHP Version: 4.0.4
> New Comment:
> 
> I like this feature request, so am reopening it :) Until someone
> replies with a definitive response as to why such heredoc spacing is
> required in PHP.

Think about chance that string contains end of heredoc mark in it :)
Even if it's not too high, but it will increase chance to EOH matches
string for sure.

That is why many scripting languages do not allow any char
before/after EOH mark.

Indent feature with decent editer, like emacs, work well with current 
syntax also.

If it's enough explaination, please close it again.

--
Yasuo Ohgaki

> 
> 
> Previous Comments:
> 
> 
> [2002-01-28 20:38:20] [EMAIL PROTECTED]
> 
> Many script languages that support here doc syntax require closing tag
> at col 1. 
> 
> Won't change.
> 
> 
> 
> [2001-01-12 16:36:11] [EMAIL PROTECTED]
> 
> This is not a bug, but a feature request
> 
> 
> 
> [2001-01-12 16:22:11] [EMAIL PROTECTED]
> 
> why must the closing tag be in column 1 ?
> i think it schould be enought that it stays in its own line.
> 
>if($foo)
>{
>   echo <<  ... lots of text ...
> EOF;
>}
> 
> looks very ugly and messes up all code beautifiers and autoindention.
> 
> 
> 
> 
> 
> 
> Edit this bug report at http://bugs.php.net/?id=8685&edit=1
> 
> 



-- 
Yasuo Ohgaki
Please CC me when you reply to news/list messages.
Do not reply only to me :)


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #8685 Updated: Here-Syntax problem

2002-01-30 Thread Yasuo Ohgaki

[EMAIL PROTECTED] wrote:
> ID: 8685
> Updated by: phanto
> Reported By: [EMAIL PROTECTED]
> Status: Bogus
> Bug Type: Feature/Change Request
> PHP Version: 4.1.1
> New Comment:
> 
> therfore i wrote 'on its own line'. i suppose heredoc is handled by the
> scanner, so this should not be a problem.
> 
> yohgaki: you were talking about reasons and mentioned only one that
> isn't a reason for me. any other reasons ?

As I mentioned, feel free to write and submit patch :)

PS: You are better to search archive, there were discussion
regarding heredoc patch. It's not directly related to
this change, but it may help. The last patch was rejected,
IIRC.

-- 
Yasuo Ohgaki


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]