Re: [PHP] Array has `trailing comma`, why not the same for function parameter list?

2011-10-31 Thread Daniel Brown
On Sun, Oct 30, 2011 at 08:47, Nam Gi VU wrote: > It is convenient to have a trailing comma when defining an array - so as > easy to add/remove code to add/remove an entry to the array > > array( >    'key00' => 'value00', >    'key01' => 'value01', >    'key02' => 'value02', >    ... > ) > > I su

Re: [PHP] Array has `trailing comma`, why not the same for function parameter list?

2011-10-30 Thread Jeremiah Dodds
On Sun, Oct 30, 2011 at 8:47 AM, Nam Gi VU wrote: > It is convenient to have a trailing comma when defining an array - so as > easy to add/remove code to add/remove an entry to the array > > array( >    'key00' => 'value00', >    'key01' => 'value01', >    'key02' => 'value02', >    ... > ) > > I

[PHP] Array has `trailing comma`, why not the same for function parameter list?

2011-10-30 Thread Nam Gi VU
It is convenient to have a trailing comma when defining an array - so as easy to add/remove code to add/remove an entry to the array array( 'key00' => 'value00', 'key01' => 'value01', 'key02' => 'value02', ... ) I suggest to PHP Development team to make it available in the syntax