Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71750 invoked from network); 17 Jun 2008 16:25:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2008 16:25:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.176 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 64.233.166.176 py-out-1112.google.com Received: from [64.233.166.176] ([64.233.166.176:6226] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/D3-61252-565E7584 for ; Tue, 17 Jun 2008 12:25:09 -0400 Received: by py-out-1112.google.com with SMTP id a25so1813379pyi.16 for ; Tue, 17 Jun 2008 09:25:07 -0700 (PDT) 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:references; bh=suEAM3cY1X7I5hThUkNvsOaPm0dkXvGOra0kKcDtB2Q=; b=ILwOgO36cmhKFA/q+Qa8jkyKKuS9Zb5H7IcvPtjEGiBDSjiyfZo8jWPY/2Ni/MqQIZ i1w5F7vNoqMZOy4+O3naSw3G8LWuOePqgQrSKRFvJ5sEY2+Qh6r440QYbwTtOFEzksz7 o41e1Ao2LM7AQh6huUKQ+njhLogOdISe5zfco= 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:references; b=jej0ZIKYC9P+h51atGP7SY3Y14YOlTcQb5BcIohG47SfvPC4o3IRlmiUjO2kZ0q/Mk anKJ6qLcvNorkugz6j4K9RuZYfsUz6N/mqREWgcnm/vlC8WbbqjildJzBEJeJlAy3ILF AvVoXvJYlqIDNUuF1QINYa5n9xULZVIlTzWo4= Received: by 10.142.245.10 with SMTP id s10mr3067170wfh.262.1213719906496; Tue, 17 Jun 2008 09:25:06 -0700 (PDT) Received: by 10.142.230.16 with HTTP; Tue, 17 Jun 2008 09:25:06 -0700 (PDT) Message-ID: Date: Tue, 17 Jun 2008 09:25:06 -0700 To: "Christian Seiler" Cc: "php-dev List" In-Reply-To: <4857ACE1.3050501@gmx.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9419_30612683.1213719906494" References: <4856A547.3080801@gmx.net> <1961603263.20080617120320@marcus-boerger.de> <4857ACE1.3050501@gmx.net> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: chrisstocktonaz@gmail.com ("Chris Stockton") ------=_Part_9419_30612683.1213719906494 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, Great patch and a much needed feature. One thing I do not agree with is the point in the lexical key word, seems it should be natural to inherit the outer scope. I guess the choice of adding lexical and going slightly against the grain of typical closure implementations like scheme or ecmascript is that is not really consistent with php so i can understand disagreement and your note you made on performance. Seems like the right choice to force manual inheritance of outer scope. But great work on this, hope it gets added and none of the core developers say it is not the php way or is only useful in brainless languages. -Chris ------=_Part_9419_30612683.1213719906494--