Comment

Comment by pwdisswordfishy

And how is Closure::fromCallable('trim') recommended by the article any better in that respect?

    $ php8.4 -r "var_dump(Closure::fromCallable('trim') === Closure::fromCallable('trim'));"
    bool(false)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton