Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57486 invoked by uid 1010); 31 Jan 2008 01:01:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57471 invoked from network); 31 Jan 2008 01:01:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2008 01:01:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:53214] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/10-49295-7DD11A74 for ; Wed, 30 Jan 2008 20:01:12 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id D6575C0E618; Wed, 30 Jan 2008 18:01:08 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-14-241.neb.res.rr.com [76.84.14.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id E5E10C0E616; Wed, 30 Jan 2008 18:01:07 -0700 (MST) Message-ID: <47A11DD3.6050002@chiaraquartet.net> Date: Wed, 30 Jan 2008 19:01:07 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Markus Fischer CC: Andi Gutmans , Antony Dovgal , Stas Malyshev , PHP Internals References: <479114FD.6010005@zend.com> <47A07E86.4010008@zend.com> <47A08314.60507@daylessday.org> <47A0C487.3060604@zend.com> <47A0C725.2070001@daylessday.org> <698DE66518E7CA45812BD18E807866CE0133A752@us-ex1.zend.net> <47A0FB2C.6090808@fischer.name> In-Reply-To: <47A0FB2C.6090808@fischer.name> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] nowdocs again From: greg@chiaraquartet.net (Gregory Beaver) Markus Fischer wrote: > 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 :/' (I'll try again) I still think it looks weird. Could we consider instead using <<<' ' with '; required on a new line? $bar = <<<' text with lots of 'quotes', "Quotes" and a few $variables, \slashes and \n \t not expanded '; Also very clear (and more intuitive in my view) would be: $bar = <<<' text with lots of 'quotes', "Quotes" and a few $variables, \slashes and \n \t not expanded '>>>; Greg