Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34054 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8156 invoked by uid 1010); 17 Dec 2007 08:21:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8124 invoked from network); 17 Dec 2007 08:21:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2007 08:21:41 -0000 Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.198.186 rv-out-0910.google.com Received: from [209.85.198.186] ([209.85.198.186:50861] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/CB-23767-28136674 for ; Mon, 17 Dec 2007 03:21:37 -0500 Received: by rv-out-0910.google.com with SMTP id k15so1803714rvb.23 for ; Mon, 17 Dec 2007 00:21:08 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JadV/eYClSaRNHUuFkRfCG4Q1aHYIcaoWetVAMMXcDc=; b=FWf+8awh1dsMNIpqacYzy8iRW1oItipIvJ/z0zNSwkJULecp7KB6YkTxOL6cBKLiwUvlLlvbJOYLhAAwfPczCXzR7N3HzzjmHmS2/86Z0TpkaXFwZI03YyNfH6EWrICD0idMyaknIrY8AP8Wx1xdzIX6bQZZ60DzNu0ReMXwKiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P5keCjvqqBrXGchdZCXjLqwxaP1J112umWBfwv7wG6obYUfuIBAiU5kYwxE/ifegrMANjEdz2Oo26l+UiPbagvE19JjVhRK16fD8xLNP6RVj6zfL1n96BiTowJT91jnFBzVwhm1Eg8qGPfdOvc+1trkR5dABo1tXGt4YVMv311w= Received: by 10.140.142.6 with SMTP id p6mr3766219rvd.224.1197879667983; Mon, 17 Dec 2007 00:21:07 -0800 (PST) Received: by 10.141.50.16 with HTTP; Mon, 17 Dec 2007 00:21:07 -0800 (PST) Message-ID: <98b8086f0712170021m678149eftba0855e9f027cf1f@mail.gmail.com> Date: Mon, 17 Dec 2007 09:21:07 +0100 To: internals@lists.php.net In-Reply-To: <476582E6.7020808@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <4764CC64.3040608@zend.com> <98b8086f0712160324n653bbb61v17fbf1d364ae3b51@mail.gmail.com> <476582E6.7020808@zend.com> Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: troelskn@gmail.com ("troels knak-nielsen") On Dec 16, 2007 8:56 PM, Stanislav Malyshev wrote: > I don't see how it'd help anything in debugging. Presumably, a stack trace would now contain file and line number. > That's not binding. But the problem is, seeing this, one expects > closure. And it's no closure. One might expect that, coming from a language with static scope. Then again, one would also expect global variables in that event. I don't really see this as a huge show stopper. My experience from Javascript (Which probably is the language, that most PHP'ers are likeable to have met anonymous functions in) is, that lesser experienced programmers, are often surprised by static scope. Even if they have used Javascript for a while, they have just assumed, that it was global variables. I think the majority of the users won't miss the feature and those who do, will be able to appreciate why it isn't there. -- troels