4 ms·
IIRC several industry and government coding standards don't permit evaluations in arguments to functions, as the compiler can end up doing wonky things, to say
by 0xbadcafebee 6mo ago
IIRC several industry and government coding standards don't permit evaluations in arguments to functions, as the compiler can end up doing wonky things, to say nothing of the likely human error. These are the kind of standards we should be adapting into a software building code to avoid security holes like this one.
- masklinn 6mo agoThese standards are that way because older languages (specifically C and C++) have unspecified evaluation orders for arguments, so multiple argument expressions with conflicting side-effects are non-portable. Here the expressions are pure, OooE has nothing whatsoever to do with the issue.
- kibwen 6mo agoOr just use a language with a sane (read: defined) argument evaluation order, which is to say, every language that isn't C or C++.