Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45583 invoked by uid 1010); 21 Jan 2008 15:03:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45565 invoked from network); 21 Jan 2008 15:03:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2008 15:03:36 -0000 Authentication-Results: pb1.pair.com header.from=foolistbar@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=foolistbar@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: foolistbar@googlemail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Received: from [66.249.92.171] ([66.249.92.171:56624] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/62-20131-244B4974 for ; Mon, 21 Jan 2008 10:03:34 -0500 Received: by ug-out-1314.google.com with SMTP id u40so865522ugc.29 for ; Mon, 21 Jan 2008 07:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=rTE0RBRbM3jaRXEfFxQJUO+RMqITmvP7VM8PFH3w8UM=; b=VLFDkVWtDhp/y/Uvda8x5PZswYm7uHvCTBKKWBhMYbQAia1nC8zsc1LbEgKXvpDzWYu/MAwSu99b0dZv8Iayww+aefZOszOaFoV37iXZFVqR+PIGTkQtfZRKGV5wHGYMXdkw7MwZFVRtRnPgBIiulchLJ/bugLTacFx7itmw1LQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=wkWyE61pB5oo0W69bnzQZbbL3WTbHeMRIcLWo9zos/1FW4psESYkV1jDBU+UEOEbbeLXbEaKUmXMSrOJ5GzlSavMqrp1evhEJj1lYfBhHRm5HtWdGjSieHWmSb2vJ3tB5QOQBRMAyYM8xh5TMAFKOD6h9fIqv3gxSaTCPCXDyaY= Received: by 10.78.204.1 with SMTP id b1mr9073794hug.73.1200927805320; Mon, 21 Jan 2008 07:03:25 -0800 (PST) Received: from ?192.168.0.116? ( [86.151.228.75]) by mx.google.com with ESMTPS id q9sm6607723gve.10.2008.01.21.07.03.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 07:03:24 -0800 (PST) Cc: "Stanislav Malyshev" , "PHP Internals" Message-ID: To: Hannes Magnusson In-Reply-To: <7f3ed2c30801210524j5be0d1cbv4585ed1fae437909@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Mon, 21 Jan 2008 15:03:20 +0000 References: <479114FD.6010005@zend.com> <7f3ed2c30801210524j5be0d1cbv4585ed1fae437909@mail.gmail.com> X-Mailer: Apple Mail (2.915) Subject: Re: [PHP-DEV] nowdocs again From: foolistbar@googlemail.com (Geoffrey Sneddon) On 21 Jan 2008, at 13:24, Hannes Magnusson wrote: > On Jan 18, 2008 10:07 PM, Stanislav Malyshev wrote: >> Hi all! >> >> I remember the topic of 'nowdocs' (if you don't remember what it is, >> read on) was already discussed, but nothing really happened about it. >> For those who just recently woke up from cryogenic sleep :), >> "nowdocs" >> are heredocs extension that does not interpret the content (think >> single >> quotes instead of double quotes). Should look something like: >> $foo = <<<'END' >> blah$fooblah >> END >> unline regular heredocs, $foo would be left as-is. I think now it's >> good to add it to 5.3 (and I like 'FOO' syntax best of all variants). > > Without turning this into color of the bikeshed flame, I'd go with the > orginal <<<~LABEL syntax, I think quoting the label will be easier to > confuse with heredocs (I had to read your example twice, thought you > accidentally used the heredoc syntax..). > It is also easier to document, and search for, <<<~ than <<< 'foo'. > > But I trust you read the old thread and picked <<< 'foo' for a reason, > so feel free to ignore my comment. Disclaimer: I haven't read the old thread, but I prefer <<<~. >> Any objections to this? > > No. +1 from me. Nor from me, +1. -- Geoffrey Sneddon