Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4977 invoked by uid 1010); 21 Jan 2008 13:24:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4961 invoked from network); 21 Jan 2008 13:24:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2008 13:24:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.236 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 66.249.82.236 wx-out-0506.google.com Received: from [66.249.82.236] ([66.249.82.236:13184] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/91-11626-C1D94974 for ; Mon, 21 Jan 2008 08:24:44 -0500 Received: by wx-out-0506.google.com with SMTP id s14so1315841wxc.26 for ; Mon, 21 Jan 2008 05:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=HFF0Jg058djgt8nQQhLOg5LQBk3bULzLkkiePAb2t7g=; b=AduVXvC0ZYpzUw/18viPiiIXsiScVRnYFfbGmgGYcmozhtSrpscluxjsN+xav3hzZQHCFvoM3oGZ3bmqfqamYm0j2UD3iw3uJTAaYJLHHnwXouxiBWbWTiXHqJQB5JBa6/rKq4gjgNCgtuLoJmEOArHQShMlnQ8b3NQCzKvGg/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XTdRFXKBgIYrUHEk2AgbJcdW/qKs/onEyPEvwhbu9psCw3cGyFh7myvb8qKOQ6V0q4BFP5fiuWcG7Z8lSEE9ndoc8BJXdDsfXt+R2Vgo3SmMghlskG7zfV5LFLv6QV+EZaBfIME9QQp9vHVri3wwxvnkVIfRqs3MPXxYZhJMgSo= Received: by 10.142.232.20 with SMTP id e20mr3117710wfh.160.1200921881131; Mon, 21 Jan 2008 05:24:41 -0800 (PST) Received: by 10.142.170.21 with HTTP; Mon, 21 Jan 2008 05:24:41 -0800 (PST) Message-ID: <7f3ed2c30801210524j5be0d1cbv4585ed1fae437909@mail.gmail.com> Date: Mon, 21 Jan 2008 14:24:41 +0100 To: "Stanislav Malyshev" Cc: "PHP Internals" In-Reply-To: <479114FD.6010005@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <479114FD.6010005@zend.com> Subject: Re: [PHP-DEV] nowdocs again From: hannes.magnusson@gmail.com ("Hannes Magnusson") 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. > Any objections to this? No. +1 from me. -Hannes