Re: Heredoc-Syntax

From: Date: Wed, 30 Jan 2002 11:17:20 +0000
Subject: Re: Heredoc-Syntax
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-78538@lists.php.net to get a copy of this message
derick@php.net wrote:
On Wed, 30 Jan 2002, Yasuo Ohgaki wrote:
therefore i wrote 'on its own line'. i suppose heredoc is handled by the scanner, so this should not be a problem.
It's handled by the scanner indeed
I know :)
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.
It's fairly easy to patch, the question is if we want it. Andi, what's your statement on this? I don't see why the heredoc label should be on the first column anyways.
It's easy, but do we really want it? heredoc is used like function foo() {
    $msg = EOH
some string here and I don't see any good reason put EOH; colum other than 1. EOH;
     print $msg;
} Heredoc text must start from colum 1 anyway ;) -- Yasuo Ohgaki

« previous php.dev (#78538) next »