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:
[ Parent
| on HN ]
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 :-)
> 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.