Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110808 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77926 invoked from network); 1 Jul 2020 20:51:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Jul 2020 20:51:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4EEF31805A7 for ; Wed, 1 Jul 2020 12:40:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 1 Jul 2020 12:40:25 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E94BD5C01DD for ; Wed, 1 Jul 2020 15:40:24 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Wed, 01 Jul 2020 15:40:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=abK4vtZ9MKVaKtctQSDhNc4mQsOK1EzZNd3wrqqD/ Lc=; b=qIWffmzde2pQlBns7sG8YDSH/NsIa7CknoaDrdG+P5etl9FCa3935j31D HGj5BkBHz/pdduLzN/Om6mupAjMqIu+h6OdJtGwHyfgYDiBY2ytlTnSOnLJY4tOR DjHlGc93VX9TMgpIF9bRA1e4mZ7uPUkHvvIQ+ycH/y6PPD/mN/o1rBm6vJn0mXoz i+LXyXc5CdDOWdA+WUqG0DxkOmhZzDjHvpYO/x2ILJV80qBnoOVh3XilR8XOmip3 v6pokBr5kHfB/yJ7ggpAJvMQ/LhmG5zmDoW73hMdGAl9agUyPB2C8Txj7BN3RT8R wOtxYfzslxegJNGGRv8FXZNZ9DGrA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtddvgddugedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepvefhgedvgedufefhleefueelvedtvdeivefhgfev heetiedvhfdufffgiedtieeknecuffhomhgrihhnpehgihhthhhusgdrtghomhdpphhhph drnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6251114200A2; Wed, 1 Jul 2020 15:40:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-576-gfe2cd66-fm-20200629.001-gfe2cd668 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Wed, 01 Jul 2020 14:40:02 -0500 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?UTF-8?Q?Re:_[PHP-DEV]_Draft_RFC_callable_types_+_callable_type/functio?= =?UTF-8?Q?n_autoloading?= From: larry@garfieldtech.com ("Larry Garfield") On Wed, Jul 1, 2020, at 4:55 AM, Dan Ackroyd wrote: > On Tue, 26 May 2020 at 18:08, Iv=C3=A1n Arias = wrote: > > Just a Little question. I see this other document in the same repo: > > > > https://github.com/Danack/FunctionTypes/blob/master/3_referencing_fu= nctions_and_callables.md > > > > Are you planning to also raise it? >=20 > Yes, but for PHP 8.1. >=20 > Although I think it's an important problem to solve, I don't actually > like it as a solution, for aesthetic reasons. >=20 > I'm planning to draft it as an RFC right after the 8.0 RFCs close, > which will give people a year to come up with a better solution. >=20 > cheers > Dan > Ack On a related tangent, which someone else suggested was relevant here: Levi Morrison wrote another RFC a while ago on partial function applicat= ion: https://wiki.php.net/rfc/partial_function_application He hasn't had bandwidth to work on it, though. I have taken a stab at i= t, and mostly handed it over to Ilija Tovilo who has pushed it further a= long. It's not going to be ready for 8.0 by a long shot, but we're hopi= ng to have it ready for 8.1. (Exact details to depend on the implementa= tion, WIP.) Although it's not the main goal, it would also offer a way to do effecti= vely the same thing as the direct callable reference RFC: https://wiki.php.net/rfc/partial_function_application#use_as_an_identifi= er It's not an ideal substitute, but it's close to one and wouldn't require= a separate syntax. I mention it here mostly for transparency and to make sure we don't end = up with multiple competing RFCs that duplicate functionality needlessly.= --Larry Garfield