logoalt Hacker News

jasonpeacockyesterday at 9:27 PM2 repliesview on HN

C libraries have advertised "header-only" for a long time, it's because there is no package manager/dependency management so you're literally copying all your dependencies into your project.

This is also why everyone implements their own (buggy) linked-list implementations, etc.

And header-only is more efficient to include and build with than header+source.


Replies

ueckeryesterday at 10:08 PM

I never copied my dependencies into my C project, nor does it usually take more than a couple of seconds to add one.

show 1 reply