The inline keyword is one of the best examples of why I think c++ - TopicsExpress



          

The inline keyword is one of the best examples of why I think c++ is the worst language ever created. (before anyone complains: I know c also has this, but it was backported from c++) First of all, it doesnt affect the implementation, it affects how the code is compiled. Isnt that the job of the compiler to optimize this stuff? Second of all, the compiler may choose to ignore it. So me, the programmer, has to keep in mind what the code Im writing will be compiled to in order to determine whether I should use it or not, and even then, its behavior is nondeterministic by design. Wtf were they smoking?
Posted on: Sun, 30 Mar 2014 12:40:25 +0000

Trending Topics



Recently Viewed Topics




© 2015