PHP 8.5 Introduces the Pipe Operator for Simplified Function Calls
By
lemper
Slow-proofed and worth the wait. Worth its weight in flour.
Summary
PHP 8.5 introduces the pipe operator (|>), a feature that simplifies passing values as arguments to functions. While seemingly simple, its potential impact on code readability and efficiency is significant. The article discusses its functionality, use cases, and the broader context of PHP's development under the PHP Foundation.
Key quotes
· 3 pulledThe pipe operator, spelled |>, is deceptively simple. It takes the value on its left side and passes it as the single argument to a function (or in PHP's case, callable) on its right side.
On its own, that is not all that interesting. Where it becomes interesting is in chaining operations and improving code readability.
PHP 8.5, due out November of this year, will bring with it another long-sought-after feature: the pipe operator (|>).
You might also wanna read
Running Gemma 4 on a 2016 Xeon Server with No GPU: A Technical Walkthrough
The article describes running Gemma 4 (a 25B-parameter Mixture-of-Experts model) on a severely outdated server with a 2016 Intel Xeon E5-262
NVIDIA Announces "Hack for Impact" London Event for Autonomous AI Agent Development
NVIDIA is hosting a "Hack for Impact" event in London, challenging participants to build autonomous agentic applications using open-source m
Four practical steps to control Azure Foundry token costs for agentic AI workloads
This article provides practical guidance on controlling token costs in Microsoft Azure Foundry, particularly for agentic AI workloads where
MerLean-Prover: A Recursive Agent Harness for Lean 4 Theorem Proving Outperforms Baselines
MerLean-Prover is an end-to-end Lean4 theorem prover that replaces 'sorry' declarations with kernel-checkable proofs using three agent types
Why small pull request policies can backfire on software quality
The article critiques a common software engineering policy that limits pull requests (PRs) to small sizes (e.g., 500 lines, few files). Whil
apenwarr.ca·7h agoHow Anthropic contains Claude's expanding access across its products
Anthropic describes how it has evolved its approach to granting Claude, its AI assistant, increasingly broad access to internal systems over
