Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35048 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73676 invoked by uid 1010); 30 Jan 2008 21:39:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73660 invoked from network); 30 Jan 2008 21:39:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2008 21:39:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=webmaster@keryx.se; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=webmaster@keryx.se; sender-id=pass Received-SPF: pass (pb1.pair.com: domain keryx.se designates 208.69.121.33 as permitted sender) X-PHP-List-Original-Sender: webmaster@keryx.se X-Host-Fingerprint: 208.69.121.33 supavet.nexcess.net Received: from [208.69.121.33] ([208.69.121.33:48559] helo=supavet.nexcess.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/13-49295-79EE0A74 for ; Wed, 30 Jan 2008 16:39:36 -0500 Received: (qmail 15976 invoked by uid 108); 30 Jan 2008 21:39:32 -0000 Received: from unknown (HELO ?127.0.0.1?) (gunther@keryx.se@87.227.57.139) by supavet.nexcess.net with ESMTPA; 30 Jan 2008 21:39:32 -0000 Message-ID: <47A0EE92.90909@keryx.se> Date: Wed, 30 Jan 2008 22:39:30 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: 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> In-Reply-To: <698DE66518E7CA45812BD18E807866CE0133A752@us-ex1.zend.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080130-0, 2008-01-30), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] nowdocs again From: webmaster@keryx.se (Keryx Web) Andi Gutmans skrev: > 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; > +1/2 Once again thinking as a teacher... Just a few weeks into my last course I actually had students asking if there was a "single quote like equivalent to heredoc", without my prompting them whatsoever. They just thought it would be natural. I am advocating the suggestion above as having <<<'FOO' looks too much like a string and will be misleading for newbies (and ~ is a PITA to type on a Swedish keyboard...) My main concern is that is easy to miss such a small glyph. Maybe: <<<|FOO or even <<<#FOO would be an alternative? Lars Gunther