Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36306 invoked from network); 20 Jun 2008 13:05:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2008 13:05:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.200.173 wf-out-1314.google.com Received: from [209.85.200.173] ([209.85.200.173:11222] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/17-16112-90BAB584 for ; Fri, 20 Jun 2008 09:05:14 -0400 Received: by wf-out-1314.google.com with SMTP id 26so914824wfd.26 for ; Fri, 20 Jun 2008 06:05:11 -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 :content-transfer-encoding:content-disposition:references; bh=E7tvrCMiZu54xT4hhBa8TbziE6dhWPvnBKQaDX8xR60=; b=R26JGVsthIMqojmcMnFKEg2KEzQM4hqpIVOtHJs/OyhKOypN58MIwTChJahqTr5hqp lQtXEBrX/jD3zm557oGQA9F5les9mULhqOSflZn/pcR4h2AG3GaXFoURG5p20ufGHlao PJaOu2W+aFb7Kf+fVVbM3QvICfNPwJiHOkhOI= 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=K1HShbml6t5LJlNJgOrsR8xeRFowj+GXQiE9MUg7Y08jTdoBaoN4zQvIxMQVhQOJj6 jM+ohYuy59sMaDqsvLMRhElKKBR6jIjRdVV0A219jXebfnsY2jP3mffdrmzFCAtl77kX YXypOkP9rOrdaBzlEK9CJAljjDm5dLT99Tl2Y= Received: by 10.142.222.4 with SMTP id u4mr1167371wfg.250.1213967111152; Fri, 20 Jun 2008 06:05:11 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Fri, 20 Jun 2008 06:05:11 -0700 (PDT) Message-ID: Date: Fri, 20 Jun 2008 17:05:11 +0400 To: "Dmitry Stogov" Cc: "Lars Strojny" , "Christian Seiler" , "php-dev List" , "Andi Gutmans" , "Stanislav Malyshev" In-Reply-To: <485BA816.5010405@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> <485A35A0.9050602@zend.com> <485AF253.2070400@gmx.net> <485B908D.7000106@zend.com> <1213963419.28537.13.camel@localhost> <485BA062.6060006@zend.com> <1213965995.28537.30.camel@localhost> <485BA816.5010405@zend.com> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: indeyets@gmail.com ("Alexey Zakhlestin") On 6/20/08, Dmitry Stogov wrote: > It is possible to do it, but I don't see any reason to invest time into > it. PHP scripts hardly ever use nested functions, and you always can > access global variables through "global" or $GLOBALS. I don't see, why > do we need another way to do the same. just to clarify: php, currently, does not have "nested functions" but it is allowed to declare "usual", global-scoped functions from inside other functions -- Alexey Zakhlestin http://blog.milkfarmsoft.com/