Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71528 invoked from network); 6 Aug 2008 02:13:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2008 02:13:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=moriyoshi@at.wakwak.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=moriyoshi@at.wakwak.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain at.wakwak.com designates 211.9.230.193 as permitted sender) X-PHP-List-Original-Sender: moriyoshi@at.wakwak.com X-Host-Fingerprint: 211.9.230.193 mgkyb1.nw.wakwak.com Received: from [211.9.230.193] ([211.9.230.193:52487] helo=mgkyb1.nw.wakwak.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/0D-01880-CC809984 for ; Tue, 05 Aug 2008 22:13:34 -0400 Received: from vckyb1.nw.wakwak.com (postfix@vckyb1.nw.wakwak.com [211.9.230.144]) by mgkyb1.nw.wakwak.com (8.14.3/8.14.3/2008-07-17) with SMTP id m762DP6n076672; Wed, 6 Aug 2008 11:13:25 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Received: from at.wakwak.com (at.wakwak.com [211.9.230.135]) by vckyb1.nw.wakwak.com (Postfix) with ESMTP id 5F34C30060; Wed, 6 Aug 2008 11:13:25 +0900 (JST) Received: from [10.6.6.252] (gw1-ns.bioinfo.ttck.keio.ac.jp [131.113.122.81]) (user=moriyoshi mech=CRAM-MD5) by at.wakwak.com (8.14.3/8.14.3/2008-07-15) with ESMTP/inet id m762DO1h003733; Wed, 6 Aug 2008 11:13:25 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Message-ID: <489908C2.9040200@at.wakwak.com> Date: Wed, 06 Aug 2008 11:13:22 +0900 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Larry Garfield Cc: internals@lists.php.net References: <909776579.20080803142659@marcus-boerger.de> <4896EA3C.6010203@zend.com> <4897E9B5.9020006@at.wakwak.com> <200808052035.12199.larry@garfieldtech.com> In-Reply-To: <200808052035.12199.larry@garfieldtech.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Larry Garfield wrote: > On Tuesday 05 August 2008 12:48:37 am Moriyoshi Koizumi wrote: >> I don't think there are many differences in ambiguity between >> >> $closure = function ($arg) { use $a; >> ... >> }; >> >> and >> >> $closure = function ($arg) use ($a) { >> }; >> >> Moriyoshi >> >> -- >> Moriyoshi Koizumi > > The former has no good way to differentiate between by-ref and by-value > importing. The latter has a very intuitive way. That's why (IIRC) it was > used. The only difference I could see between the two is the presence of parenthesis. I doubt they contribute to the intuitiveness that much. function ($arg) { use $a, &$b; v.s. function ($arg) use ($a, &$b) { Moriyoshi