Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72736 invoked from network); 19 Mar 2015 22:44:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2015 22:44:09 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.171 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.171 mail-ob0-f171.google.com Received: from [209.85.214.171] ([209.85.214.171:36580] helo=mail-ob0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/AF-25408-9315B055 for ; Thu, 19 Mar 2015 17:44:09 -0500 Received: by obdfc2 with SMTP id fc2so65985427obd.3 for ; Thu, 19 Mar 2015 15:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=bjWLKkinCMwIGu82H7igtHuhqa9U3+AAkKJd4h/yqx4=; b=Ad3r3Oc4fkfVo2vC50WWWLULmIH/u4VDlkwwkZZ0Ag4vm0AYQQ2Bz1+oJVH6G+nZPK i/7yd+NBFQo1LYE6KqOk4Kmpxen0JkiYuYWZ4koGdaJPlDED1Tl8cMuswh3+2qYmO+FE 0v/xXRH7ewT2K+1EdfaGiCZgXc6n6vPdLjp4Fr6yWMhnekv5XdKkaCake6IOkSKpl0Cq sJuPO479PrqtSAEzqtshMxc3Fypmgi+eGLR4vZUJTn+iHHBvFnS8u20S1rT1KbM2Thqo MTgU3yziZEcq7pUyVU8raw2iSPDNnoE+SRJq0iaMmo0l5yzWDbibwxRpP4juQrNceitk WIrA== X-Received: by 10.60.94.199 with SMTP id de7mr62697854oeb.23.1426805046129; Thu, 19 Mar 2015 15:44:06 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Thu, 19 Mar 2015 15:43:25 -0700 (PDT) In-Reply-To: <550B49D8.4080608@gmail.com> References: <54BEC072.5000507@mabe.berlin> <54C28B63.1040506@gmail.com> <54C2E405.4090204@gmail.com> <550B49D8.4080608@gmail.com> Date: Fri, 20 Mar 2015 07:43:25 +0900 X-Google-Sender-Auth: M-S6WtBGp35opMblOGTM1pgEtVA Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e011762cbf03c1f0511abef4c Subject: Re: [PHP-DEV] Inconsistencies in callable, call_user_func and direct variable calls From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e011762cbf03c1f0511abef4c Content-Type: text/plain; charset=UTF-8 Hi Rowan, On Fri, Mar 20, 2015 at 7:12 AM, Rowan Collins wrote: > On 19/03/2015 20:50, Yasuo Ohgaki wrote: > >> Hi Sebastian, >> >> On Thu, Mar 19, 2015 at 9:48 PM, Sebastian B.-Hagensen < >> sbj.ml.read@gmail.com > wrote: >> >> 2015-03-19 12:51 GMT+01:00 Yasuo Ohgaki > >: >> > Distinguishing array and callable is problematic. >> > Array callable is better to be deprecated in the long run. IMHO. >> >> Then how would you write an callback containing an already >> constructed object? >> $a = [$object, 'method']; >> >> The alternative is unnecessarily cumbersome: >> $a = function($methodArg1, $methodArg2) use($object) { return >> $object->method($methodArg1, $methodArg2); }; >> >> >> I'm not proposing deprecate it soon, but in the long run. >> It will need a decade to deprecate it. >> > > It is not time that is needed, but an alternative way of expressing "use > this instance method as a callback", such as those discussed elsewhere in > the thread. I replied how it could be deprecated. I'm not commenting for it, but the deprecation discussion. You cannot restrict discussion to what you would want, can it? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e011762cbf03c1f0511abef4c--