Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79894 invoked from network); 12 Jan 2009 02:41:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2009 02:41:42 -0000 Authentication-Results: pb1.pair.com header.from=gradbot@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=gradbot@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.21 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: gradbot@gmail.com X-Host-Fingerprint: 209.85.218.21 mail-bw0-f21.google.com Received: from [209.85.218.21] ([209.85.218.21:40845] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/2E-17244-5EDAA694 for ; Sun, 11 Jan 2009 21:41:41 -0500 Received: by bwz14 with SMTP id 14so27178160bwz.23 for ; Sun, 11 Jan 2009 18:41:38 -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:references; bh=1k9DizVk/VjkvrVf7P/fKDjw+thiYPljOcrwiMp6Ewc=; b=tXMk+t1L+sSMRGeSgEeU2WdyXJINMnUxhnryXsH016Z6I8rrAbJox2JG3MIXQBQxZq NVqE119+EBN+cQ6meiWcUUh+9f6J4XUGNF6QULtDHKv4J9cFlPJCzR5umP249eLR6mdW plgDh9EcDqMK9qLCSO9YfCif0csAlyOUqP8y0= 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:references; b=R0YCGFZq2+9zlBjM/UczpvHC9BiM+8tIXDArznSpC36ne8xTL791P1aPypB19b8zU0 r/rtkZeRYBMl++y1LUs6LJxHOnxGLO0yB8DoMI9eSvKd9De4ykjd01aZDDm7lH9enPya 0XvxBwaxc3OJzk0ZkMHJGWb2WD5fdCLAZCiw0= Received: by 10.181.192.10 with SMTP id u10mr10783254bkp.185.1231728098683; Sun, 11 Jan 2009 18:41:38 -0800 (PST) Received: by 10.180.208.18 with HTTP; Sun, 11 Jan 2009 18:41:38 -0800 (PST) Message-ID: <31a036a0901111841g7ef14c43q96cf99e896b1edb9@mail.gmail.com> Date: Sun, 11 Jan 2009 18:41:38 -0800 To: internals@lists.php.net In-Reply-To: <4964A69F.2060103@zend.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2958_7081808.1231728098672" References: <272365052.20090104173130@marcus-boerger.de> <4964A69F.2060103@zend.com> Subject: Re: [PHP-DEV] Re: [RFC] Closures, Lambdas and use From: gradbot@gmail.com ("Erik Schulz") ------=_Part_2958_7081808.1231728098672 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I like how the current syntax forces you to define what your importing right next to the function signature. It's easy to waste time debugging if your assumptions about what's being imported into scope are wrong. Erik Schulz - gradbot @ gmail, yahoo, aim Software Engineer, Vulcan Inc. On Wed, Jan 7, 2009 at 4:57 AM, Dmitry Stogov wrote: > Personally I like the current syntax more and don't see any reason to > change it. > > Thanks. Dmitry. > > > Marcus Boerger wrote: > >> Hello Internals, Dmitry, Lukas, Johannes, >> >> some time back (August 08) I complained about 'use' being at a weird >> position and not at the same place as 'global' or 'static' where I >> expected it. Back then Dmitry asked me to provide a patch to check out >> the alternative. Now during the holidys I finally found some time to >> change from: >> $f = function() use ($x) {} >> to: >> $f = function() { use $x; } >> >> Patch is attached. >> >> Comments? >> >> Best regards, >> Marcus >> >> > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > ------=_Part_2958_7081808.1231728098672--