Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91444 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67440 invoked from network); 27 Feb 2016 19:01:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2016 19:01:47 -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.50 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:37990] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/7A-55238-B92F1D65 for ; Sat, 27 Feb 2016 14:01:47 -0500 Received: by mail-wm0-f50.google.com with SMTP id l68so12038603wml.1 for ; Sat, 27 Feb 2016 11:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=CS4Ru/UYH4C5fR0UGiuaZbmc9Y2us1JH5rSJEs5zCyY=; b=rp+p0o3pkBS+QlgrPbm0NoelTaySgs6Bg1OyTu++0ZqlqfW+HlUUoL92Erzw4HtmGd VrriCZyZ26TFsYB8zmM+5sVURN0kdGb8xMBAMAILKgzXV5lRb2vHvL4JbLjIjJWg7UCi uOSiB0uOFt7JHMhnQUGNoxfGgg7VHIqvG5QOZO5gIs0DDPlQbRnrWRLvxsGSM9zY96Hy kIL0vXDUH2gQ15Ye7e2OWeLrRmpp0OKJLwpq+Eo7KbmrksVqBr9528eq0S2fNXYVtaza nun1vmXHtB9yxZZb3OiJTezcTbEtfGeI2VLLBSMqfV0NF6AfUvWaavY6oswL2u38DFqB 6gTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=CS4Ru/UYH4C5fR0UGiuaZbmc9Y2us1JH5rSJEs5zCyY=; b=ljE+OqHKTOyOYoeYBsg3p1P7Ipev6+tLYwbyT7+6UHBdVEc6bnuVLDOqOTJMP2uZQG BO1YyrpDrug+eAgGs6opdC8Iq6tGmuXT0NxXfEgLspBwc/v5rYdHRfmX0HthJnKOZ7El OpRuFvBtpFzTiOYVNf6banpG/QccPnGNG3hLiaHdAcaLQE3yibZTjGWv3wdDsTqGCBUU VNwCQH51UU8LsVinJFkcRCt5zjHDk/fo6hsNIl68/IwkzxA803IOmebtKMQrJKb3sR+/ C2tc/ITwY1aMlh0e+aOgdp3Uc9aoBLtVDN8B6B4b2jbW6zuJBvSpBjMcog8lVRkqI8zf vblw== X-Gm-Message-State: AD7BkJLWgY1LFkgb4jlfmY4gCFLG+3gpTX53f99NBBHU/E4tN6jJe3e6akLqy4r2883rDQ== X-Received: by 10.194.248.163 with SMTP id yn3mr7132320wjc.179.1456599704505; Sat, 27 Feb 2016 11:01:44 -0800 (PST) Received: from [192.168.1.189] ([95.148.161.211]) by smtp.googlemail.com with ESMTPSA id t12sm8265791wmt.20.2016.02.27.11.01.43 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 27 Feb 2016 11:01:43 -0800 (PST) To: internals@lists.php.net References: <97.82.11730.D8C3FC65@pb1.pair.com> <56CF63D8.8020005@gmail.com> Message-ID: <56D1F28F.5070600@gmail.com> Date: Sat, 27 Feb 2016 19:01:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Callable constructors From: rowan.collins@gmail.com (Rowan Collins) On 26/02/2016 11:28, Andrea Faulds wrote: >> Then we could add to that a special case for constructors: >> >> - Callable::forConstructor(string $class_name) >> > > Oh, that's quite a clean solution, I like that. Heck, no need for > Callable, we already have ->getClosure() in Reflection. A modified > version of that for constructors could work > (ReflectionClass::getConstructorClosure() ?). Reflection always feels to me like "the language doesn't really support this, but you can sort of cheat this way", but maybe that's a poor prejudice. Regards, -- Rowan Collins [IMSoP]