Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53184 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99131 invoked from network); 7 Jun 2011 20:44:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2011 20:44:59 -0000 X-Host-Fingerprint: 208.107.178.23 host-23-178-107-208.midco.net Date: Tue, 07 Jun 2011 16:44:59 -0400 Received: from [208.107.178.23] ([208.107.178.23:16839] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/29-50253-ACD8EED4 for ; Tue, 07 Jun 2011 16:44:59 -0400 Message-ID: <17.29.50253.ACD8EED4@pb1.pair.com> To: internals@lists.php.net References: <4DED3D5B.6030307@oracle.com> <4DEE782E.1020605@sugarcrm.com> <7104F8AD-489E-4824-97AA-D9831FAB77AA@bitextender.com> <4DEE8ABB.8040503@sugarcrm.com> <7E4C6CB6-ED93-4BFC-87B8-94FDEF243896@bitextender.com> User-Agent: slrn/pre1.0.0-18 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit X-Posted-By: 208.107.178.23 Subject: Re: [PHP-DEV] Callable type From: weierophinney@php.net (Matthew Weier O'Phinney) On 2011-06-07, David Zülke wrote: > On 07.06.2011, at 22:31, Stas Malyshev wrote: > > > Hi! > > > callback is callable, the opposite could not be true. a string > > > --or a closure-- is callable, but the string is not a callback > > > According to our docs, which were out there for years, it is. One of > the main and widespread complaints about PHP is the lack of any system > in naming, design and documentation, it is sad to see how many people > want to make it worse instead of making it better > > +1. I'm thinking it should be "callback", or the docs should be > adjusted. "callable" arguably does make more sense, but either way, it > needs to be consistent, that's what matters most. Agreed, here. "callback" is the usage throughout the documentation to refer to anything that passes is_callable(). -- Matthew Weier O'Phinney Project Lead | matthew@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc