Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-21 Thread Laruence
On Sat, Jul 21, 2012 at 4:13 PM, Pierre Joye wrote: > hi Laruence, > > On Wed, Jul 18, 2012 at 4:54 PM, Laruence wrote: >> Hi: >> Call for voting for "Allow use T_AS in closure use statement", >> https://wiki.php.net/rfc/useas#voting >> >> any comment will be appreciated. > > Well, that's

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-21 Thread Pierre Joye
hi Laruence, On Wed, Jul 18, 2012 at 4:54 PM, Laruence wrote: > Hi: > Call for voting for "Allow use T_AS in closure use statement", > https://wiki.php.net/rfc/useas#voting > > any comment will be appreciated. Well, that's why the discussions period is required. Please close the vote, b

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-20 Thread Stas Malyshev
Hi! > For starters, maybe we could use a few examples from the previous thread > about this > rfc: http://www.mail-archive.com/internals@lists.php.net/msg57855.html > I really liked the one example from Jordi > (http://www.mail-archive.com/internals@lists.php.net/msg57904.html) This is exactly th

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-20 Thread Ferenc Kovacs
On Sat, Jul 21, 2012 at 1:02 AM, Stas Malyshev wrote: > Hi! > > > Call for voting for "Allow use T_AS in closure use statement", > > https://wiki.php.net/rfc/useas#voting > > > > any comment will be appreciated. > > I think it would be useful to add some explanation why this change is > us

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-20 Thread Stas Malyshev
Hi! > Call for voting for "Allow use T_AS in closure use statement", > https://wiki.php.net/rfc/useas#voting > > any comment will be appreciated. I think it would be useful to add some explanation why this change is useful, with specific code examples that it improves. Right now it seems

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-19 Thread Nikita Popov
On Thu, Jul 19, 2012 at 8:17 PM, Sara Golemon wrote: > Did the voting close already? One day seems awfully short. :( Laruence closed the vote because he wanted to add aliasing of arbitrary expressions instead of just variables. Nikita -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-19 Thread Sara Golemon
Did the voting close already? One day seems awfully short. :( On Wed, Jul 18, 2012 at 7:54 AM, Laruence wrote: > Hi: > Call for voting for "Allow use T_AS in closure use statement", > https://wiki.php.net/rfc/useas#voting > > any comment will be appreciated. > > thanks > > -- > Laruence

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-19 Thread Ivan Enderlin @ Hoa
On 18/07/12 17:19, Leigh wrote: I missed the discussion on this one, the RFC examples are very simple. Does it support aliasing array indices? I have missed the discussion two. I can't vote but I don't feel confortable with this new notation. Wouldn't be better to make the “=” operator availab

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-19 Thread Anthony Ferrara
Laruence, On Wed, Jul 18, 2012 at 9:53 PM, Laruence wrote: > Hi: > I saw you two vote against for this RFC. > > could you explain why? then maybe I can improve it. > > thanks The reason that I voted against it is simple. It's sugar to make it harder to understand what the code is doin

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-18 Thread Kris Craig
On Wed, Jul 18, 2012 at 6:53 PM, Laruence wrote: > Hi: > I saw you two vote against for this RFC. > > could you explain why? then maybe I can improve it. > > thanks > > I can't speak for them, but it might have something to do with a lack of information. I don't recall seeing the discus

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-18 Thread Laruence
Hi: I saw you two vote against for this RFC. could you explain why? then maybe I can improve it. thanks On Wed, Jul 18, 2012 at 11:21 PM, Laruence wrote: > On Wed, Jul 18, 2012 at 11:19 PM, Leigh wrote: >> I missed the discussion on this one, the RFC examples are very simple. Does >>

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-18 Thread Laruence
On Wed, Jul 18, 2012 at 11:19 PM, Leigh wrote: > I missed the discussion on this one, the RFC examples are very simple. Does > it support aliasing array indices? > > For example: (use $matches[0] as $name) sorry, no, it's only support literal variable for now. thanks > > On Jul 18, 2012 3:55 PM,

Re: [PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-18 Thread Leigh
I missed the discussion on this one, the RFC examples are very simple. Does it support aliasing array indices? For example: (use $matches[0] as $name) On Jul 18, 2012 3:55 PM, "Laruence" wrote: > Hi: > Call for voting for "Allow use T_AS in closure use statement", > https://wiki.php.net/rfc/

[PHP-DEV] Call for voting: [RFC] Allow use T_AS in closure use statement

2012-07-18 Thread Laruence
Hi: Call for voting for "Allow use T_AS in closure use statement", https://wiki.php.net/rfc/useas#voting any comment will be appreciated. thanks -- Laruence Xinchen Hui http://www.laruence.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.