Req #62552 [Opn->Dup]: Feature Request: Closure parameter syntax enhancement

From: Date: Mon, 16 Jul 2012 03:10:54 +0000
Subject: Req #62552 [Opn->Dup]: Feature Request: Closure parameter syntax enhancement
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171983@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62552&edit=1

 ID:                 62552
 Updated by:         laruence@php.net
 Reported by:        k at webnfo dot com
 Summary:            Feature Request: Closure parameter syntax
                     enhancement
-Status:             Open
+Status:             Duplicate
 Type:               Feature/Change Request
 Package:            *General Issues
 PHP Version:        5.4.4
 Block user comment: N
 Private report:     N

 New Comment:

this is a dup to #61682


Previous Comments:
------------------------------------------------------------------------
[2012-07-13 13:22:01] k at webnfo dot com

Description:
------------
Add 'AS' keyword after 'USE'

It will work like this:

function($quantity, $product) use ($tax AS $t , &$total as $a){
  echo $t; //$t is the local name alias of $tax
}

If implemented, will be more consistent with namespace's use .. as .. statement



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62552&edit=1


Thread (2 messages)

« previous php.bugs (#171983) next »