Elektrine lite

← Feed

@deane@contenttechtodon.org

2025-12-08 14:38 UTC

@thephpf I read the spec for this, but didn't totally get the point. Can you give me an example of when I might use this?

Replies (2)

  • @denniskoch@phpc.social 2025-12-08 15:08

    @deane @thephpf Check the example in the screenshot of the post. It’s especially helpful for the new pipe operator because you don’t have to wrap functions in another closure

    Open ##2155406

  • @Crell@phpc.social 2025-12-08 15:11

    @deane @thephpf Mostly in pipe chains and arbitrary callbacks to array_map/array_filter. Though likely a few other places as well. It's a tool that applies in very specific circumstances, but in those circumstances it is incredibly useful. By offering it, we want to make those circumstances easier and more natural to use.

    Open ##2155407