Comment by charcircuit

1 day ago

>The only cost you pay is re-parsing the header part once per TU.

You are not just parsing it. The header includes the implementation too which will get compiled. Then the linker has to do extra work in order to deduplicate all of this extra code that was made.

>Because C is so simple, this is virtually free.

This is not virtually free needing to compile a standard library for every file in one's project.

>In any case, calling it insane makes me feel disrespected

I would recommend you not take it personally. Fortunately, for better or worse software ends up being pretty robust so it can tolerate a lot. Even if you have to recompile the same standard library hundreds of times, it will eventually compile.