Am 30.01.2017 um 04:17 schrieb Yasuo Ohgaki <yohg...@ohgaki.net>:
> Unless there is critical reason not to implement it that I don't know of, I
> prefer to allow trailing commas like array universally/consistently.

I agree that consistency would be preferable here. Syntax subtleties where 
sometimes you can have trailing commas and sometimes you can't are more 
confusing than helpful IMHO.

One point where I'm most missing it is function calls because we use some very 
powerful variadic functions in our core library which can lead to long 
parameter lists (without being bad design) and therefore profit the most from 
not having a special case on the last line.

And I really don't expect a proliferation of uglier code by allowing trailing 
commas while there are cases where it is very useful.

Regards,
- Chris


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to