Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Named arguments are coming in PHP 8. Parent comment
There's a collection of 0 arguments. the "∗" was introduced specifically as a shortcut for:
def foo(a, *ignore, b): if ignore: raise TypeError
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.
There's a collection of 0 arguments. the "∗" was introduced specifically as a shortcut for:
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.