Quotes of the week
Posted Aug 23, 2012 3:16 UTC (Thu) by pr1268
Parent article: Quotes of the week
Andrew makes a good point. If C programmers were taught in years past to use inline in the declaration to inline the function (for efficiency reasons), then this implies that the programmers really knew what they were doing. After all, inline is a tool not to be misused.
But, if contemporary C compilers override the programmers' intent1, then why bother having programmers? After all, the compiler is (obviously) smarter than the human programmer. Either that, or human programmers are notorious for misusing/abusing the tools given to them.
1 As I understand the Kernel menu config text, GCC ver. 4.x has an updated algorithm for determining whether inline needs to be honored. My suggestion is to evolve the compiler one step further and have it simply ignore the inline keyword. Oh, wait, does GCC do this already?
to post comments)