Re:Maximal Min() and Max()
by usefulcat on Thursday August 08, 2024 @12:38PM
(#41193441)
> some of the changes to the macros made some developers (including Bergmann) nervous
These macros are now so complex that they're reluctant to touch them. Seems like there is a clear need for some thorough tests here? This is exactly the sort of thing that is eminently testable.
Re:Maximal Min() and Max()
by Vecr on Thursday August 08, 2024 @01:25PM
(#41194043)
Maybe. Most C code of non-trivial length is UB or at least implementation defined, you really don't want to "tickle" something in a low-level highly used macro.
Re:Maximal Min() and Max()
by Vecr on Thursday August 08, 2024 @05:30PM
(#41196520)
You're exactly right, sorry. I meant that even with tests it's probably too subtle to do the standard test driven design method of programming, you have to be way more careful.
These macros are now so complex that they're reluctant to touch them. Seems like there is a clear need for some thorough tests here? This is exactly the sort of thing that is eminently testable.