News for hackers. Stuff that matters.
Re:Named arguments are coming in PHP 8 by flemhans on Monday July 27, 2020 @02:12AM (#23962611)
That's what the above comment was referring to when saying people to things like:

  call_user_func_array($function, ['length' => $n, 'foo' => $bar, ...]);
Re:Named arguments are coming in PHP 8 by stareatgoats on Monday July 27, 2020 @02:48AM (#23962752)
> and basically nobody does that anyway.

That's it, I'm officially a nobody :-)

Re:Named arguments are coming in PHP 8 by sildur on Monday July 27, 2020 @02:59AM (#23962805)
> leaves it up to the called function to sanity-check the input types instead of letting the compiler do it, and basically nobody does that anyway.

You don’t check the input types?

Re:Named arguments are coming in PHP 8 by stareatgoats on Monday July 27, 2020 @04:46AM (#23963303)
You're reading the sentence incorrectly: "and basically nobody does that anyway", means the preceding type checking argument you refer to is moot. So I insist, I am a nobody (according to this definition).

Btw I don't always sanity check the parameters, mostly at the system edges only.

Re:Named arguments are coming in PHP 8 by z92 on Monday July 27, 2020 @05:23AM (#23963483)
Not in get-it-done, hackish scripts.