Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53186 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22890 invoked from network); 7 Jun 2011 21:41:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2011 21:41:38 -0000 X-Host-Fingerprint: 208.107.178.23 host-23-178-107-208.midco.net Date: Tue, 07 Jun 2011 17:41:37 -0400 Received: from [208.107.178.23] ([208.107.178.23:28815] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/0E-50253-11B9EED4 for ; Tue, 07 Jun 2011 17:41:37 -0400 Message-ID: <41.0E.50253.11B9EED4@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> <17.29.50253.ACD8EED4@pb1.pair.com> User-Agent: slrn/pre1.0.0-18 (Linux) 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, dukeofgaming wrote: > --0016e68ee3e4bc4b0e04a525bac6 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > +1 for "callable", it is really more consistent. I was actually agreeing With David and Stas that "callback" was more consistent, and casting my vote for that. > On Tue, Jun 7, 2011 at 3:44 PM, Matthew Weier O'Phinney < > weierophinney@php.net> wrote: > > > On 2011-06-07, David Z=FClke wrote: > > > On 07.06.2011, at 22:31, Stas Malyshev wrote: > > > > > 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