Best of Functional ProgrammingJuly 2025

  1. 1
    Video
    Avatar of primeagenThePrimeTime·43w

    I'm switching languages again...

    A developer shares their experience learning Elixir, highlighting two key features that attracted them to the language: pattern matching in function definitions and the 'with' construct for error handling. They demonstrate how Elixir's pattern matching allows for declarative programming by defining multiple function clauses that match different input patterns, eliminating the need for complex if-else chains. The 'with' construct is praised for its ability to chain operations cleanly while handling errors gracefully, similar to promise chains but with pattern matching capabilities. The developer compares Elixir favorably to Rust and Go, noting that while Rust has pattern matching, it lacks function overloading, and that Rust becomes inconvenient at higher complexity levels.

  2. 2
    Article
    Avatar of stitcherstitcher.io·46w

    The pipe operator in PHP 8.5

    PHP 8.5 introduces the pipe operator (|>) that allows chaining function calls in a more readable way. Instead of deeply nested function calls or temporary variables, developers can pipe values through a series of transformations. The operator works with first-class callables for single-argument functions or closures for multi-argument functions. While currently requiring closures for complex operations, future partial function application support could make it even more concise.

  3. 3
    Article
    Avatar of lnLaravel News·46w

    The Pipe Operator is Coming to PHP 8.5

    PHP 8.5 introduces the pipe operator (|>) scheduled for release on November 20, 2025. This operator enables chaining multiple callable functions from left to right, passing values through them sequentially. It improves code readability by eliminating nested function calls and temporary variables, allowing developers to write more linear and comprehensible data transformation pipelines using first-class callables.

  4. 4
    Video
    Avatar of awesome-codingAwesome·45w

    PHP is getting a huge quality-of-life upgrade | Syntax Error

    PHP 8.5 introduces the pipe operator, a functional programming feature that allows chaining data transformations in a readable top-to-bottom flow. The operator passes values from left to right as function arguments, eliminating nested function calls and improving code readability. Future partial function application support will further enhance the pipe operator's flexibility by allowing placeholder syntax for multi-argument functions.

  5. 5
    Article
    Avatar of typescripttvTypeScript.TV·46w

    Error Handling with Result Types

    The Result Type pattern offers a safer alternative to traditional try/catch error handling in TypeScript by returning structured success or error objects. This approach forces explicit handling of both outcomes through TypeScript's type system, preventing uncaught exceptions. The article demonstrates building a minimal Result implementation from scratch, then shows how the neverthrow library provides a more ergonomic solution with additional utilities. ESLint integration helps enforce consistent usage across teams.