Re: Re: [RFC] [DISCUSSION] Consistent Function Names
| From: | Rowan Collins | Date: | Sat, 07 Mar 2015 18:35:26 +0000 |
| Subject: | Re: Re: [RFC] [DISCUSSION] Consistent Function Names | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84411@lists.php.net to get a copy of this message | ||
On 06/03/2015 23:03, Yasuo Ohgaki wrote:
We have a lot of array_u*() functions such as http://php.net/manual/en/function.array-uintersect-uassoc.php array array_uintersect_uassoc ( array $array1 , array $array2 [, array $... ], callable $value_compare_func , callable $key_compare_func ) this can be consolidated to http://php.net/manual/en/function.array-intersect-assoc.php array array_intersect_assoc ( array $array1 , array $array2 [, array $... ] ) All of these has callback the end of parameters. These may be consolidated. I'll add this to the RFC if this is preferred.Those functions both take any number of arguments, so given a function call with 4 arguments, you can't know if that's 4 arrays, or 2 arrays and 2 callbacks. Don't forget that array($class_name, $method_name) is a valid callback, so you can't judge it by the type of the arguments either. Regards, -- Rowan Collins [IMSoP]