Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127783 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 F1AFA1A00BC for ; Sat, 28 Jun 2025 10:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751107372; bh=x1+m/xGxny26BAEIDb6JsbgarRGQT3s5W/zHIwnW7+s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YX24/gr+jHCH50NlpgBH8eZmuGmc8K8R0doNeuyI99eOnxdqDW5KeoQ+dsWUBhnXg KYc32sEgsa6BKeAhwwQ/cXD/IaObk/XfKObiDGkJHQnpIPWU0kxxhOy95X8q+PX4ms tz30P00ZuYTllo99jwuZ1xCj38sXFHVM/FQTawE9IrhzHWnSvo6JdbITZd1y0mKHOa ag2iLyrWuvedf8K6HZcnSahjcH5K54YylnFOmZ2Rb1r/qCr8FSpNXxmof1OhsvLR92 5hREv3I+ExOKn4gmWYp6ImjDPknyfgfrYRHnFg3xgVC8xWjhWyROJaFMhr5dGIrFub xfNc9d/w2SV7g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD37B18006C for ; Sat, 28 Jun 2025 10:42:51 +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.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 ; Sat, 28 Jun 2025 10:42:48 +0000 (UTC) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-70e1d8c2dc2so6508537b3.3 for ; Sat, 28 Jun 2025 03:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751107482; x=1751712282; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e80rNkuhzq0dyIHLNJoAZCIisZHcGtnIoojuOXX/kjk=; b=WhyojAyrvh41avd7zdq2y9Vp5yO7TuSZPyIaE9XxKc3200cqDxr+ZKbmRcFivLhxiu 8tvra31DxzIx2YsbV72xWdUsLpWb8nwSo43GxxZLjIisWXG6sasCceTyGBukh7enEhyh BlJkcuzVYEcONOoQVo/sbhki9JHuPwuyLYQtTtD20tC4OrMCtjo3yZ8iAAsdS5pM8UIs 22v/sbT4EHKZTaLmAG80f/PVUBhnnWCcaeIImZHdFw7tybY+UCQlv4xNA18kcpJ8TswH wenQF93tXyO8ziVli5jOHLLqNZh4kAFDeyJ9kiRV8dD8WHM04tTBnvtF0Dbpnhk3NCKz +vKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751107482; x=1751712282; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e80rNkuhzq0dyIHLNJoAZCIisZHcGtnIoojuOXX/kjk=; b=mYuW/UhMj4fPwU5MEY1Jr7yNKJkRzxVcO+r46Ko44C0tVVp+nWZdTEhVbArceIL8NG rYdi0fG+aSNgI6Lx8oAZocHGnVQjGbwpSsg5lgAdvymW4N/x4aJhrJeGsQWYjIYFm1xP E7en+WywFNU0to0cbPPSBIQtNzfDO//qQRjPy0s1TjmW3r79a/rWyAZD2p4DTZ88hLts HkZvRs+A9fx1s6j3Y21WYS96S1D/hXlB3L5/mac/U2tOB99DKEp5uBdUQ4F/KFLSXkBY UkQdZhttiuT23z9BMuNxlIJ/QaXtzwt4F1csZxvysg90sfJiQtKb7mMiv7Dhil3h9KGM yWvg== X-Gm-Message-State: AOJu0YyO00htxx5TMf91mGETPwOQFpjHZlnh0MsOO+r01Y/fPgCDNwv7 rT1/+972VPvmObXn79xZAyMwroz5kI5E83b4eerL90DQFWr7/vVWrgnIleQftDcgL6doCkcqCgy pq9r4T6gIPu4IUn0qFW7zINpmWZd2BbeAO/08 X-Gm-Gg: ASbGnctA445/RBShr4B2/DeOHeK93lZiruF1q78dO8UUMGKlTcbO4RnYlb5k12eRKVJ mY+dOfsukHJGVOPoAl9E+E2T9jR8bcIGycQnOMNXt90KYlkaIIB0m7elGQ7kM2/dq4ymHJq2CP+ yW6S+Y4k9WQecmVUms3L/3AMNWrOXBaf/oxWeEn5XMehrxzw== X-Google-Smtp-Source: AGHT+IHEmHLsLmsy03x0uD1qZwHPmey7FKiShIhvukzQJeMlbyHn/fLo5cwiRhzZTwAJ1Z9Cfm1BLyHj8vGp1jxAVqw= X-Received: by 2002:a05:690c:6009:b0:713:ff70:8588 with SMTP id 00721157ae682-715171b7ce5mr96124277b3.36.1751107482036; Sat, 28 Jun 2025 03:44:42 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 28 Jun 2025 13:44:24 +0300 X-Gm-Features: Ac12FXwI0W8vYQ4UikiOPwKIRErKiTrJHH5iHtHpMNBNDxzRfJytZG_Eb-ECF10 Message-ID: Subject: Re: [PHP-DEV] [RFC] Partial Function Application v2 To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000006e2d4006389f7b5a" From: zsidelnik@gmail.com (Eugene Sidelnyk) --0000000000006e2d4006389f7b5a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 28, 2025, 8:07 AM Larry Garfield wrote= : > Hi folks. Arnaud and I would like to present take-2 at Partial Function > Application. > > https://wiki.php.net/rfc/partial_function_application_v2 > > It is largely similar to the previous PFA proposal from 2021, though ther= e > are a number of changes. Most notably: > > * The implementation is simpler, because FCC already did part of the > work. This RFC can build on it. > * Constructors are not supported. > * But optional arguments and named placeholders are supported. > * It includes pipe-based optimizations. > > Note: We realize that this is a non-trivial RFC coming late in the cycle. > We are proposing it now because, well, it's ready now. If the discussion > goes smoothly, we're OK calling a vote on it for 8.5, especially as it > would complement pipes so well. If the discussion runs longer, we're als= o > OK with targeting 8.6 instead. We'll see how that goes. > Yea, thank you Arnaud and Larry! This is a great feature! Hope it will pass smoothly =F0=9F=99=82 --0000000000006e2d4006389f7b5a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jun 28, 2025, 8:07 AM La= rry Garfield <larry@garfieldte= ch.com> wrote:
Hi folks.=C2= =A0 Arnaud and I would like to present take-2 at Partial Function Applicati= on.

https://wiki.php.net/rfc/partial_= function_application_v2

It is largely similar to the previous PFA proposal from 2021, though there = are a number of changes.=C2=A0 Most notably:

* The implementation is simpler, because FCC already did part of the work.= =C2=A0 This RFC can build on it.
* Constructors are not supported.
* But optional arguments and named placeholders are supported.
* It includes pipe-based optimizations.

Note: We realize that this is a non-trivial RFC coming late in the cycle.= =C2=A0 We are proposing it now because, well, it's ready now.=C2=A0 If = the discussion goes smoothly, we're OK calling a vote on it for 8.5, es= pecially as it would complement pipes so well.=C2=A0 If the discussion runs= longer, we're also OK with targeting 8.6 instead.=C2=A0 We'll see = how that goes.


Yea, thank you Arnaud and Larry!= =C2=A0
This is a great feature! Hope it will pass sm= oothly =F0=9F=99=82

--0000000000006e2d4006389f7b5a--