News for hackers. Stuff that matters.
Re:Named arguments are coming in PHP 8 by masklinn on Monday July 27, 2020 @03:23AM (#23962905)
> But there’s no expanding happening here?

There's a collection of 0 arguments. the "∗" was introduced specifically as a shortcut for:

    def foo(a, *ignore, b):
        if ignore:
            raise TypeError
forgoing the name simply signals to the language that it should collect nothing.

It's a logical extension of the assumption that anything which follows `∗arg` is a keyword-only parameter.

There are no comments on this comment yet.