Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84411 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18319 invoked from network); 7 Mar 2015 18:35:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 18:35:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.178 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.178 mail-we0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:41494] helo=mail-we0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/63-29230-9054BF45 for ; Sat, 07 Mar 2015 13:35:54 -0500 Received: by wevm14 with SMTP id m14so65776553wev.8 for ; Sat, 07 Mar 2015 10:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=SXzmSeyucisLTz+BaAdKeH5pFp1GwHP/FrNa1BvCIrA=; b=0SsECMLKFBZlUbBtPt7FnPYUeTKR6wBGQKY631uh64gMLxtn14NcfHlZbN/MShcxYR cMRtm52gmdUOLwm4T5Y95WN2W0s00DKZom8OYkTZYigjZbiJYM1GJy4CxZtTtHkgAGMk IjVs7h+huAfYYoF1Vk37YfgUxeAeK7CpJHBCTvwe8y2gOfez6CKrfTApPMtA9dTOUjN3 NJtQN7CU+QQnBwVxVXUjnudd5P2YaPfAtOJTuIxKINJmrAxnNY/tB/j8p1PT5u+wQy5y DD5lRACBMBWes6KR7E1aID3dhFGl9oznN7Aj58RauVH3dAb9/j1ys6zBmuYD0f9EpSue bPjg== X-Received: by 10.180.19.9 with SMTP id a9mr44971366wie.85.1425753350922; Sat, 07 Mar 2015 10:35:50 -0800 (PST) Received: from [192.168.0.5] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id k1sm20379495wjn.9.2015.03.07.10.35.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Mar 2015 10:35:50 -0800 (PST) Message-ID: <54FB44EE.6000704@gmail.com> Date: Sat, 07 Mar 2015 18:35:26 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <54F83061.60108@seld.be> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] [DISCUSSION] Consistent Function Names From: rowan.collins@gmail.com (Rowan Collins) 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]