Re:Beginners' Guide to Linkers
by jdswain on Tuesday December 23, 2014 @09:10AM
(#8788138)
Often times the reason for overloading keywords is the reluctance to introduce new keywords, as this can cause backward compatibility problems. Instead of adding a new keyword and possibly breaking existing code that may use that keyword as a variable name or a function name, an existing keyword that sort-of fits is used for the new feature.
While maintaining backward compatibility is good, this does make the language confusing. Static is probably one of the worst offenders, but I think that C++ especially has quite a few of these cases now.
While maintaining backward compatibility is good, this does make the language confusing. Static is probably one of the worst offenders, but I think that C++ especially has quite a few of these cases now.