3 ms·
That's what the above comment was referring to when saying people to things like: call_user_func_array($function, ['length' => $n, 'foo' => $bar, ...]);
by flemhans 6y ago
That's what the above comment was referring to when saying people to things like:
call_user_func_array($function, ['length' => $n, 'foo' => $bar, ...]);
- stareatgoats 6y ago> and basically nobody does that anyway. That's it, I'm officially a nobody :-)
- sildur 6y ago> 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?
- stareatgoats 6y agoYou'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.
- z92 6y agoNot in get-it-done, hackish scripts.