RE: [PHP-DEV] nowdocs again

From: Date: Wed, 30 Jan 2008 21:06:32 +0000
Subject: RE: [PHP-DEV] nowdocs again
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-35046@lists.php.net to get a copy of this message
I think it's actually pretty useful and not that uncommon to have large chunks of text which you want to capture in a variable (and not deal with the shortcomings of single quotes and/or output buffering in those instances). The fact that you haven't found use in it doesn't mean that others haven't. And we're not talking about something significant which has risk associated with it and/or impacts other areas. 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 Sdjfslk Sdfkj FOO; Andi > -----Original Message----- > From: Antony Dovgal [mailto:tony@daylessday.org] > Sent: Wednesday, January 30, 2008 10:51 AM > To: Stas Malyshev > Cc: 'PHP Internals' > Subject: Re: [PHP-DEV] nowdocs again > > On 30.01.2008 21:40, Stanislav Malyshev wrote: > > Waiting for "better syntax" when there's nobody willing to actually > work on this > > syntax is just another way to say "kill it". > > "Nobody willing to actually work on this" effectively means "nobody > actually needs it". > > -- > Wbr, > Antony Dovgal > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.internals (#35046) next »