Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129918 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 004681A00BC for ; Sun, 25 Jan 2026 12:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769345525; bh=xlIzGUTRzc1XyR60XTe1lXxKy7Uv+sccn1BwZUp0RSM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BCh6KMCqpokiZv5IbW4kAWTju3HVgTN5VLSVyxhwdIqDHR9LEWHPM/7DriYOiWcqZ Hie/vn7SXrfCtcPVCCDCDGMO71Sb6ol2zzP9Bxw+fduan37yNmy42CUfbg9MFEzyPe 0ZyJaZwCXNvmzH/x157m9eDWkYV47VelW4iUh1mDhBhhhtuHXwnzZifqGgFhxOU6C0 PgBzvfsIeLi2XpXvQXjXq7aSKx6vUTfjK3boE0N33VLKPKz1cCNh7p21rI3tyr6O0e RGSUCbJKWCZ9FUCXbuYYROxCGs6h2mJS5W1tOMYWNP/mwEaimip+VBFSiGUJPIdxzH F/y3OpfFOZA1g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7D2B7180003 for ; Sun, 25 Jan 2026 12:52:01 +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.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (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 ; Sun, 25 Jan 2026 12:51:48 +0000 (UTC) Received: by mail-oa1-f48.google.com with SMTP id 586e51a60fabf-4042f55de3aso2604386fac.1 for ; Sun, 25 Jan 2026 04:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769345502; cv=none; d=google.com; s=arc-20240605; b=OuUgbnuAc4ZEqYgbjTqUPH9Nszv9ScKHtM2505IviVde/5nRKj/dKv4YCE2d6iwhQ3 9nUbmPFbUj+kqb1UBW0GU/RLtKwInvi36CP3VimHR0iygidRVps6ITgKt2arDJI4F/jy MK6Hrxd9sy1BJUVE2EasVBOySM5P3zJz2nEAwn3imbd0ATe2YkXIR8mnAJ4zJ2ke46jX F3+2QtQaPDuGXJb1gLtBT98/k8B4F5FYXE8fErncpli9zljKqiK69nFc4/LCnQAtzF2Y Fr/Yeeb/1in0fRJH8mUIx2Ma8P0RVCi1ZN5XTIfIE48gqaPyGyG/lnzdpF7BV3mQgkNv SqXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QzMgJVAVCFU3v6e89CMawZYzd5OER5w/bxSPcxjxGfw=; fh=opn7vW1xIZxHCEHCijNq/da8JTI4Tkx6xwD0gpTmd4g=; b=ND5tY2c2WIu0RuA/kb3vC2B4KOHDeXYLUyod/IPZ5zYNyHRVqpTEu4ZCKxEu3IGqnt SEGWVGjXUCi6cm7UY1N2GxoZFzwxEvr9NuuVsVIJU7LAE2AmoWEH6sttz/1rHwEGIjTT F+7ci+JhG0Hyg9ju0bcDQCvGrN4klYxGh+rmP+afyfPDLW3/0eINND+XJUwt5k6NTqfF orm97kRBKsjVtyd7n4oJ9olkvks1YFvCf4xbcBSFjux/YKg54EfSFRbj9pYHjiQPQfgl Utf3JJl3vebR91GOXuQVOK9GLGk1Bzo3un62DYpo66YFEH2Hpla0QqwTyAADA4sIkeHi FQDg==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769345502; x=1769950302; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QzMgJVAVCFU3v6e89CMawZYzd5OER5w/bxSPcxjxGfw=; b=nUlTTV1nU9DV2amBwo+UCvu3lRjZgqW71La/ixo3jZjhL3xPPqsqWOe5+fboilW/I+ ZDw41kseRmEWaMNoee5NA0+x6PhxLjim5r4gYZdUR1mapTjxlOd+CaWThLbxFRj/E1Ey uKzuPCQemXRbcOubKHwQpHdWpppI5Rx8z8ig8uc4uclBrstKT9ElIR5eE/JZJY4B56g7 3GLRagC2tj8jiuhPTNvzCkq004tWlaBnIApE44SsZEP6uDDUfG4BsaG5qsNjqTqoadKU J4eHXcXHJc5uI3pDoYnTqHUdzzV5bfTkjmKHZjnpJyNMhsYJ1OdeIm6SMW/Uj2QA0NsE A/Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769345502; x=1769950302; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QzMgJVAVCFU3v6e89CMawZYzd5OER5w/bxSPcxjxGfw=; b=n/Sbc4QIdJxgy1GcTURUG/QExH3WpjHBkNPwe0XWmcYPPplXcFqyxq2LQr3YwtNAnh 8bpN8roryMOvCj82YGzNQ2rUH1fwMW3NfMPwp/DNUUql2+kYjwTEAqc4s3EbcA88kB2k jjK2cV5cuguydiowjK8v+a3uVa0jxn4506fPFpJsMFj2d3apOZwgy5Fk4URmrLZ5GSB7 y/4QTh9HCbMFeO8rasO9LCx/J4ir70saI2figDpbmReD6ts/lv5msWdivwd1kqC80Kll Cn7lTAytOpx2pDpeV0wCnZNYDhv3yBwvBn18vD6X92VjRjZTT76ZmsI6J+8Ov3ZYDp4R mUDg== X-Gm-Message-State: AOJu0Yy87g4C4VuwASaHl0vZy8qOfQ1oyAR5d4Hl+UNEp3mVUNYuwOjT IvYP7F4rr2sZ2h5iC0Cdv84oNiSISNXH+DJXzkyrkPMXf+TsuHlcGYlGWE9zvFPAqtttS6MJ+/L TA4ulGPNdiBqQybu/3BgcNNxMrmBAqhk= X-Gm-Gg: AZuq6aLr2DIRQzKIA1Njo73Li4FnPk2Qx8dw1Z9WRItV2Gii0s9QXGiqpyEJ3OSCWwj JP2FyUr5GPlt24eMfrnKyLZsmcZkRGqE1QMyHrSKZqKqB298BjIKncPAvh2BtnSLekIx9M/zT5P 4soGyMAFhlxHSwiey8dALN5Cc8cGJrMZFMIeuUWWq0iF7zQWrkxXP1dovas1/8FxoYcG/eJvq+b 2Vtdra3FLThnkGREpvbM8wSIGeZJNFb4Mb8JwNCIFoO6nvQhiNG2qDK5y31NHsB94W+KduIVNrE /vhFdgxUpZL/tVIFgnbAeIyU5GNMvQ== X-Received: by 2002:a05:6820:985:b0:65f:cda0:e00d with SMTP id 006d021491bc7-662e0a2ad14mr718935eaf.17.1769345502488; Sun, 25 Jan 2026 04:51:42 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <64953ec741a4c6609519e1878ad37b54@bastelstu.be> In-Reply-To: <64953ec741a4c6609519e1878ad37b54@bastelstu.be> Date: Sun, 25 Jan 2026 19:51:31 +0700 X-Gm-Features: AZwV_QiE--5678RVGSbE7TUiUzytvFhlm4okwCGQaiU_xcg4qs18EoqH2dUnAUI Message-ID: Subject: Re: [PHP-DEV] [RFC] Partial Function Application for instance of non-static methods ("$this") To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: php internals , Arnaud Le Blanc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: pierre.php@gmail.com (Pierre Joye) Hi Tim, On Thu, Jan 22, 2026 at 4:53=E2=80=AFPM Tim D=C3=BCsterhus wrote: > > Hi > > Arnaud and I would like to start discussion on our RFC =E2=80=9CPartial F= unction > Application for instance of non-static methods ("$this")=E2=80=9D which i= s > intended to round-off the Partial Function Application RFC that was > accepted recently: > > https://wiki.php.net/rfc/partial_function_application_this I really like that feature. The syntax however, including some proposed in this thread, makes little sense to me. It is also challenging as it targets 8.6. I am not sure it is a good idea to rush and make bad compromises with the syntax because of BC or other issues due to the engine current state/behaviors. I would rather wait for the next major and have a proper, self explained syntax. Even if I doubt that "_" as function name will ever be deprecated as well, that would be my favorite. The next would be "it", as new keyword, $formattedDates =3D array_map(DateTimeImmutable::format(it, "c"), $dates); That could give some time to send some deprecation warning for "it", as an example. Or whatever other symbols may be chosen. Or whatever else would be needed to have a better approach that could last for the next decade :). best, --=20 Pierre