Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114972 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12923 invoked from network); 19 Jun 2021 11:25:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jun 2021 11:25:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 590821804C9 for ; Sat, 19 Jun 2021 04:42:30 -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_H3,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 out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 ; Sat, 19 Jun 2021 04:42:29 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E38105C00E6 for ; Sat, 19 Jun 2021 07:42:28 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Sat, 19 Jun 2021 07:42:28 -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=fm3; bh=k2+2UE jOQT1O7iH1uUw0XgElM9RwmMH39q23UFKD2pk=; b=IetYwMrA3y4+q1Inx3ObS5 zU+DFXUu7m1vv2pLAALuGZECnposqp9IvHnQeXsag8miKCrdanQERaqgOI3AQGf4 JsJUf/xZKBv8rbrXrKIAt9RnMfl4CX1guj24SHx5RKZ2vtC640xiOSatn3f93cZi KvN+gzWbjfy7rmCeXXaHwFU2LUkWepNBuPA0WKYR2NOUfZclo4MWgUxI/3OR8ZCw DNtVcj3p1zgKggRoidfChLnKaVp1teg7yF9UXWwitWu4eyfSrdrT3D06CVlFsKxX AuYRGUEW/BHhSsk10omj3+wLYv8qL062hyZHhH6SZuUKjg7Vq34xI6zQZxegBGHg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeefhedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id C164BAC0072; Sat, 19 Jun 2021 07:42:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-526-gf020ecf851-fm-20210616.001-gf020ecf8 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <222b3921-3d9b-47f9-8d13-e6a123f36fad@www.fastmail.com> Date: Sat, 19 Jun 2021 06:42:08 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [Vote] Partial Function Application From: larry@garfieldtech.com ("Larry Garfield") On Sat, Jun 19, 2021, at 12:39 AM, Hamza Ahmad wrote: > HI Larry Garfield, > > Do you have a plan to further extend this rfc? I mean, what if one > could typecast place holders? Broadly speaking, what if one could > perform some operations, such as arithmetic, bitwise, and type cast as > said above? > > `$foo = bar((type) ?);` > `$foo = bar(? & 0xFF);` > > Best > Hamza Ahmad We have no plans to extend it in that fashion, no. The only follow up I have in mind myself is the pipes RFC. If you want to do inline processing like that on a function call, then I think you are better off using a short lambdas as you already can today. --Larry Garfield