3 ms·
Header files are a historical legacy from when C was developed. Because machines were small compilers/languages were designed to do single pass compilation on m
by Gibbon1 5y ago
Header files are a historical legacy from when C was developed. Because machines were small compilers/languages were designed to do single pass compilation on modules which were then linked.
Friends of mine who are actual CS majors say with C it's not fixable without changes to the language. With Java or C# the compiler can do a pass and extract the object definitions. But because of ambiguous syntax and majorly because of the preprocessor it's not possible with C as it stands.