Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114170 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67201 invoked from network); 25 Apr 2021 22:14:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2021 22:14:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 758D11804CC for ; Sun, 25 Apr 2021 15:18:39 -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_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Apr 2021 15:18:38 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 646AE5C00C6 for ; Sun, 25 Apr 2021 18:18:38 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Sun, 25 Apr 2021 18:18:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm2; bh=Z/JUCW UphTLtK0yB/CtKXpimXBAj+xgYXweEVwbaNkk=; b=ZP2t7vnytSRASh/448BvVa /9jgZBEsl1/y2BlMLFu4KCFh9QreNnFsOsnYbpMHwuLjCO9c3BArPUVW7Zq9bxyU zskGQAXkaYZefD5MrwtLY2WfJwO/ZS6pyBsISXJ8mQgb+K/o5IX81eREqAQ2U1Ya MqYx6dCpW5Pocs5fiiAr1e1o+Y6lHKtAwalGLdskTY9V2FaecLKE1h5qVbVOJqsl fw5HanOdSZx2rnbvLBV/Qpq748BKNM4TQMRBcJXonId+5gyeUt3OeK3V1T+rMMO7 EJyaKPyXGGvAoAut7XeXC3aq5ziXOj4eLoC7fKgWDTAZCRe7EGdIAwmgH79qSWfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddujedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeevheehvdevjeelvdevgfelvefftdejkeelvdekgeeh fffgiedvjefhhfeltdduteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhi vghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1B27D3A02D2; Sun, 25 Apr 2021 18:18:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Sun, 25 Apr 2021 17:18:17 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] Partial function application From: larry@garfieldtech.com ("Larry Garfield") On Sun, Apr 25, 2021, at 4:34 PM, Levi Morrison via internals wrote: > On Sun, Apr 25, 2021 at 3:08 PM Max Semenik wrote: > > > > On Sun, Apr 25, 2021 at 10:26 PM Larry Garfield > > wrote: > > > > > https://wiki.php.net/rfc/partial_function_application > > > > > > Amazing, I've wanted this for so long! Have you considered extending this > > syntax to OOP, e.g. $obj->method(?) or SomeClass::staticMethod(?)? > > It works for methods as well, as stated in the proposal section. I > think there aren't any examples in the RFC just because functions make > for shorter examples ^_^ but we should add some to help make that > clear. Ha, yes, I didn't realize we were missing those. :-) I just added a Methods section. In short, yes, it works for methods, functions, closures, basically anything you can otherwise call. --Larry Garfield