Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130063 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 762001A00BC for ; Mon, 9 Feb 2026 20:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1770667303; bh=uY/fWV4tC9g7CKc1NikvpW4pARt1j7w/wDuPXHrSSow=; h=Date:From:To:In-Reply-To:References:Subject:From; b=gvALfpaeT8tXGDE+KePlIELRSOLd2vx/la3oEQceJMsJd4kcEfPtyWBF824mZd4b9 LOdBaP4DEJdQTi0uf19sIWPEVs7LhwrzL7PVSQWY/a4WKwyERkDwkQ1C+Kc5cs8E0M cCi5C4KXS+g5QXIgdsDGE2kVnyd9BctHcbICnbn8GJ0FW4Ul048rjpbbcTBya72IbH EAADjmbvOvfIbeY7sFZfjzFmluNTxuJcvWOMz0wwPb5ikFjXZtgGjyqwvTDySzVznO xHunCoA8ZuQV/7MnBbLQ2Dhn5HugBCLE52oJrvXuBwjEHQRj5siuV4fB+/BihL5icL 7ORE+qa0Do4pQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2104E1801D5 for ; Mon, 9 Feb 2026 20:01:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 9 Feb 2026 20:01:42 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 3D49A140012F for ; Mon, 9 Feb 2026 15:01:37 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Mon, 09 Feb 2026 15:01:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1770667297; x=1770753697; bh=H9EVt2bZT8Jyp9OJNREhZ cWSP/slZdY15hNN3lP83+4=; b=rdzdEID/OKB3+RrxQY63/YuOHafz4LAfbAPvO VO3nWZ1W4bzd7pEHf7QxVeo6EOpSMMY9zUF78C/I7hxQ8FDfAjvmkP4FEL8ZdqLN cblsEZuDAAbeHwvFWQgPwb8WtlZEaHQ1/CeAP/cxVILkNmJoiLsymEN4b4yQgFhS E7miS7RcS+ZY9dfhtOmJ3vFDglcufUTBc4+4SawxyCy5RSY9BBiKBFCa3bFaeA3C 0JyjrvpbFn7P3I2wplArOUNySZtLQwnEP0333gzf/NULhTJjNmEP8sR8BbQz9KWF sVoO6DNJPArejZt3xhdHgMUm947tDCviPFgj0FQRmQkStCnhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770667297; x=1770753697; bh=H 9EVt2bZT8Jyp9OJNREhZcWSP/slZdY15hNN3lP83+4=; b=Zen1Tfyv2m+5RgIkC yHRIxYKMGZcyaqeisnNksjmE52Kmj3KQMwosIWG28AjNF5ZD0yidS8TC44g+I/JY RuszpujBc0YcHOO1Mco5UlRcXFsLZABFp+8dru1DEsSsUlZHsvx2MAY1jt8se93L of0YGZTCJ1c1gjvqocNyUXc2LbQE6A46JSh95ChiKtoIGbhoSlkYbghLga63NysR nxW0foXbp4JREhIeqX6h4eKFadFs1gtwMvhvqKdAN6GBBrxAPu3f8isO/+RKDXSg fQeO/ZUyTh9HcDQWMth5cm9/GdpuZ4Op6R38fBjoxKUF6AJRmJCCLt2NZ/jEunwF rABeg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduleejjedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpedugedvlefgueegheefjeetffduveeltefhfeegjeffffel gedttdevkeegkedugfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomhdpnhgspghrtghp thhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id DFF1C700065; Mon, 9 Feb 2026 15:01:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: Ap5THxlW55h7 Date: Mon, 09 Feb 2026 14:01:16 -0600 To: "php internals" Message-ID: <4de375b9-e3b6-4432-b466-5186d9002d04@app.fastmail.com> In-Reply-To: References: <64953ec741a4c6609519e1878ad37b54@bastelstu.be> <253ee811-0c1d-7eab-4c36-38607401aaf6@php.net> <28461544eb11b41dce7c7563ad879e63@bastelstu.be> <62a90f31-697b-4607-a1ba-67956f5adfac@app.fastmail.com> <5c6ff4c3-8a1b-4b4a-8c1a-0acbb7b1cae2@bastelstu.be> Subject: Re: [PHP-DEV] [RFC] Partial Function Application for instance of non-static methods ("$this") Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Fri, Feb 6, 2026, at 4:05 PM, Bob Weinand wrote: > I'd like to search for appropriate words... You were apparently unsuccessful. > On 6.2.2026 21:30:11, Larry Garfield wrote: >> Sure, but we can fiddle with the details to find something that works. I also suggested something like these to Arnaud off-list: >> >> (?: Test)->stuff(?); >> (Test ?)->stuff(?); >> ((Test)?)->stuff(?); >> >> --Larry Garfield > > > Could you please not push this garbage. As stated repeatedly, this is just idiating on possible syntaxes that allow for an abbreviated form when the object is the only thing being partialed. If you don't like the ideas thrown out so far, please share your own rather than getting insulting. My original plan was to use `$$->foo(3, 4)`, which would always produce a single-parameter closure that would invoke `foo(3, 4)` on whatever object was passed to it. I was not involved in this RFC from Arnaud and Tim, but I'm trying to look for ways to improve it so that it can cover the most common use case better. I very much support the idea, but I don't think I would vote Yes on the current syntax. It's far too cumbersome for the most common case. Assistance finding a syntax that would satisfy all presented situations would be more welcome than calling brainstorming "garbage." --Larry Garfield