Re: [PHP-DEV] New feature: additional syntax proposal for Foreach

2013-07-03 Thread Nikita Popov
On Wed, Jul 3, 2013 at 10:01 PM, Chris London wrote: > Hello community, > > This is my first post here. I hope to improve my participation in the > community and give back to the technology that has done so much for my > career. My first attempt is to propose an additional syntax for the > Forea

Re: [PHP-DEV] New feature: additional syntax proposal for Foreach

2013-07-03 Thread Kingsquare.nl - Robin Speekenbrink
Welcome Chris, As a `plain` user of PHP, i'd like to advocate not to allow anymore aliasing of ways to do stuff... Your example should just read foreach(array_keys($array) as $key) {} That's the only way to convey the actual intent of working with keys and explicitly leaving out the values ;) But

[PHP-DEV] New feature: additional syntax proposal for Foreach

2013-07-03 Thread Chris London
Hello community, This is my first post here. I hope to improve my participation in the community and give back to the technology that has done so much for my career. My first attempt is to propose an additional syntax for the Foreach statement. Background: There are times in our code where we c