logoalt Hacker News

charcircuittoday at 6:47 AM1 replyview on HN

I do not want to include and compile a standard library for every file that includes it.

Why do standard library headers always have to be insane?


Replies

dboontoday at 7:10 AM

Have you considered compiling it into a binary of your choice? It works perfectly well as a traditional library. The only cost you pay is re-parsing the header part once per TU. Because C is so simple, this is virtually free. In any case, calling it insane makes me feel disrespected and I would prefer if you didn't do that.