You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "rarila (via GitHub)" <gi...@apache.org> on 2026/07/14 12:39:51 UTC

[I] [PHP 8.6] Partial Function Application [netbeans]

rarila opened a new issue, #9507:
URL: https://github.com/apache/netbeans/issues/9507

   ### Description
   
   Support for the upcoming version 8.6 of PHP.
   
   _(Scheduled to be released in late November 2026)_
   
   ### Use case/motivation
   
   The [PHP RFC: Partial Function Application (v2)](https://wiki.php.net/rfc/partial_function_application_v2) introduces a native syntax to pre-fill some arguments of a function call while leaving others open for later.
   
   The syntax uses a `?` placeholder for a single open argument (e.g., `str_replace('hello', 'hi', ?)`) and `...` for remaining variadic arguments, completely removing the need to write verbose, custom anonymous arrow functions.
   
   Calling a function this way returns a standard `Closure` object that only expects the remaining missing arguments.
   
   This feature drastically cleans up functional-style programming, making it highly readable when using inline callbacks or chaining operations with the pipe operator.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists