RE: [PHP-DEV] nowdocs again
| From: | Andi Gutmans | Date: | Thu, 31 Jan 2008 00:54:28 +0000 |
| Subject: | RE: [PHP-DEV] nowdocs again | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35052@lists.php.net to get a copy of this message | ||
Yeah that is very true. I guess Perl way of doing 'FOO' is better after
all :)
Andi
> -----Original Message-----
> From: Markus Fischer [mailto:markus@fischer.name]
> Sent: Wednesday, January 30, 2008 2:33 PM
> To: Andi Gutmans
> Cc: Antony Dovgal; Stas Malyshev; PHP Internals
> Subject: Re: [PHP-DEV] nowdocs again
>
> Hi,
>
> Andi Gutmans wrote:
> > I think if the syntax is confusing we can go for just a single quote
> as
> > part of the operator which doesn't make it look like just another
> plain
> > old string, e.g.:
> >
> > $bar =<<<'FOO
>
> Such a thing is not nice for casual string syntax highlighting in
> editors.
> Needs a special rule to handle an opening but not closing single quote
> .. mhmmm :/
>
> - Markus