Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88671 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7125 invoked from network); 4 Oct 2015 23:02:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2015 23:02:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:34651] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/D0-00151-C00B1165 for ; Sun, 04 Oct 2015 19:02:37 -0400 Received: by padhy16 with SMTP id hy16so16834244pad.1 for ; Sun, 04 Oct 2015 16:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=VB/v8nWF2T6OlK5mY9Lqb1lhsrAkIYeDtEA9PM4PVp8=; b=N6hY6OnqVlhXM0sXczadLACNIA7JjxfAkxdbp4s21ALCCcWN2K2CPQD8uD0QmBEAFX rz4tOFclrLOlJPyljjqIPda94MY57lUU4zLubcmFfu9hTErKIT2TeLg9hffGLFi/xmVd wxOxLeJKTVfhCDkU8xHbL0dF2qG4sriDUv14svZmLMTgKwJTipJG2JI9eV0wbwmkPxS9 IUIlDsqW4SKuLC8V8ypzkHpmspHQwxyCY6qitOpmZRz+ztypBzB3ko2DJ7nt148rZRrI A+AVLIT55DBzoUZ1zsGo9LF5EtEz1gVS9bOCu5gYlwjtEp6CEamMlaM75DovYXoWROSw 4NxA== X-Received: by 10.66.119.167 with SMTP id kv7mr10630087pab.141.1443999753705; Sun, 04 Oct 2015 16:02:33 -0700 (PDT) Received: from [192.168.2.102] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id xm4sm23925666pab.27.2015.10.04.16.02.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Oct 2015 16:02:32 -0700 (PDT) To: Michael Wallner References: <8D.64.31315.E67F0165@pb1.pair.com> <561182F5.2030508@gmail.com> Cc: PHP Internals Message-ID: <5611B007.8080903@gmail.com> Date: Sun, 4 Oct 2015 16:02:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] [DISCUSSION]: Closure from callable From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I think the origin of this intention is, that calling a callable just > by `$callable()` does not work consistently -- see the other RFC by > Dan -- Maybe we should fix $callable() then? :) I see no reason why $() shouldn't work on all callables. That's why they are "callable" after all. > and that call_user_func() suffers from a (mythical?) performance > issue. Fixing performance issues in a specific functions by introducing a language-level constructs does not sound like the best option to me. I would first ensure the issue exists and then look into how it can be fixed with this specific function. -- Stas Malyshev smalyshev@gmail.com