Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23639 invoked by uid 1010); 22 Jan 2008 01:23:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23624 invoked from network); 22 Jan 2008 01:23:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2008 01:23:32 -0000 Authentication-Results: pb1.pair.com header.from=kingwez@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kingwez@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.243 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kingwez@gmail.com X-Host-Fingerprint: 209.85.132.243 an-out-0708.google.com Received: from [209.85.132.243] ([209.85.132.243:50684] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/5A-64254-F5545974 for ; Mon, 21 Jan 2008 20:23:21 -0500 Received: by an-out-0708.google.com with SMTP id c18so453299anc.1 for ; Mon, 21 Jan 2008 17:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:in-reply-to:subject:references:message-id:content-type:content-transfer-encoding:mime-version:date:cc:x-mailer; bh=+ONZVLO6WnxvbMirst1M9qoEx0vRsNLzUDmeTPNvBTA=; b=OxqpKAvrptlDnfTfpWnb8h+b/hazWNZh3CO5IfPlZEWYVD5pcf3MGbbxHElnr2lwOe0IUYv7Ko6v1SoWS8X3EfUlakNVe8fIj5DjZ703jRXksXsQA7fN8/tQjRYT4OFGEymraDvz8hUtYDVXZnmUwziCVa7WL+junq+vXgl9qXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:in-reply-to:subject:references:message-id:content-type:content-transfer-encoding:mime-version:date:cc:x-mailer; b=mud/qTUOyj8ZFjUD8Eysok+Twe9cTaKXDUfH05xrKvzQsGKbToQbWCWAi1GMw7bLuBuzYxOXduZSKrogavz3QI8R5wD8QSHVGIWoEWAoFxnj+gbJizCwQoAuX0iIqpksOAGEBV52GqBCwrMhZmGhYnNjGWhkPf5rGPr9TWpw3xc= Received: by 10.100.171.10 with SMTP id t10mr16096256ane.94.1200964934939; Mon, 21 Jan 2008 17:22:14 -0800 (PST) Received: from ?192.168.50.4? ( [76.100.30.170]) by mx.google.com with ESMTPS id 1sm5800599agb.16.2008.01.21.17.22.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Jan 2008 17:22:14 -0800 (PST) To: Stanislav Malyshev In-Reply-To: <479114FD.6010005@zend.com> References: <479114FD.6010005@zend.com> Message-ID: 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 20:22:11 -0500 Cc: 'PHP Internals' X-Mailer: Apple Mail (2.915) Subject: Re: [PHP-DEV] nowdocs again From: kingwez@gmail.com (Wez Furlong) +1, using 'END' as the syntax. The ~ version to me implies some kind of bit-flipping operation, whereas the single quotes remind us that interpolation doesn't happen. --Wez. On Jan 18, 2008, at 4: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). > > Any objections to this? > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >