Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129890 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 E26521A00BC for ; Fri, 23 Jan 2026 13:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769176758; bh=sVyie3k6ukxoi5Q6xEohLlNQ1EZOvdI2mvfXJlSW1NQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=c3DZRTmCWPNaL6LgPWTnTp55Xwwg/DDE9De5zXwdxDKXl3+IN0ABwqjVuC6T2s1l6 3bxS17/H2kQLXbUdXPX3be55/7mO6mgFff2S4hbbwk4RLx2Fe3MXqr3XhSV7PR/wLc WDfofY+XnRL8SJDxVD4H9irLMTiupz8f3mV78T78Jv2pHmxcGMpGoJrrMgY/f6j1O7 QNikFzJif5uPgd3NLnxDGi7EBCO0S87o/X8gGZ/PnEzW4xoSQA53QEKE0+4PLwQM8A HzjFFYwft4B52Olu77EAy9Li/fV25kJ128IyBuleDJS3liKJVN5/h2KAgFAUQZ7/gV OQy2GJBLjwcMQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD082180039 for ; Fri, 23 Jan 2026 13:59:17 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 23 Jan 2026 13:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1769176751; bh=q7vxnToNKFneHzrdXsUT6IiOWbgFpbZag4TziQdxnBk=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=E2zQx+gyWGSxuBgar3zNCod4fOGQa9fIqJBAhE6zVCohZv5xfV1qHUbSKIv0lqohw JVra39RRYRo2OQGR/pY7Z5j0qbY8pkk3D4kAw5mAHquNHOzHAnEVybRC6Fy/6wMFMK maRlEok8mym2sT68vCaNhrmczq44zRqSlpp66UslRfpBKbsNFoupkkLgvfNvtDDw9R XH8VQu2rFp5WoCb9tpDllssFxFgNB+BMJW2Llh7K5HYsvvQaLNmuNuHHm0s94or3tm SgR1N1dOu0gZYao/Ftm4izwGD13+vW2bCHXDlVshKtyZrMDxv3vBZprQPCYmq1ME5j rNGLlIKUYVoTA== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Jan 2026 14:59:11 +0100 To: "Rowan Tommins [IMSoP]" Cc: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Partial Function Application for instance of non-static methods ("$this") In-Reply-To: References: <64953ec741a4c6609519e1878ad37b54@bastelstu.be> <253ee811-0c1d-7eab-4c36-38607401aaf6@php.net> <28461544eb11b41dce7c7563ad879e63@bastelstu.be> Message-ID: <2e33bbb7bc37e426a339217d545369a0@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-01-22 17:26, schrieb Rowan Tommins [IMSoP]: > The PHP equivalent would be something like this: > > $f = (DateTimeImmutable)?->format('c'); See my reply to Mathieu on why this specific one wouldn't work. > Or, slightly more readable but less consistent with casts: > > $f = (? as DateTimeImmutable)->format('c'); That would work, but indeed would not solve the reordering case. I also feel it is inventing more new syntax than the current “scope-resolution-operator” syntax the RFC uses (which is not just used for static method calls). Best regards Tim Düsterhus