Re:Crow – C++ Microframework for Web, inspired by Python Flask
by mtdewcmu on Tuesday July 08, 2014 @10:59AM
(#8004801)
'static' is old. It must have meant something to Kernighan and Ritchie.
I see no connection to the word inline in the C++ meaning. In C, at least, inline means inline.
My guess is that the C++ inline got its meaning from the winding path of c++ history, and only makes sense in the context of that history.
Note that you don't necessarily have to type `inline` to have inline functions. Methods defined in the declaration of a class are implicitly inline; so are template functions (but not explicit specializations).
The reason it's called `inline` instead of something else probably has something to do with the committee's aversion to new keywords, and commitment to backwards compatibility. Changing `static` would probably break a lot of code: think what would happen to static variables inside static functions.