News for hackers. Stuff that matters.
Re:Maximal Min() and Max() by jonathrg on Thursday August 08, 2024 @12:33PM (#41193378)
A compiler for a language with generic types will definitely do less work to implement generic min/max than the C preprocessor has to do in order to perform all the text substitutions generated by these macros.
Re:Maximal Min() and Max() by asplake on Thursday August 08, 2024 @12:55PM (#41193663)
Oh totally! It has the information to do it both properly and efficiently.