Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
olalonde
· 2y ago · 0 comments
Maybe that will sound banal to some but C would be so much more enjoyable to me if it had a "cargo" system and no implicit imports.
Comments
[–]
rational_indian
2y ago
That's the problem with C. It cannot have a sane cargo like system. The language is not built for writing libraries. There is a reason why everyone keeps reinventing the wheel when it comes to datastructures in C. Where is STL for C?
[–]
Ragnarork
2y ago
The closest is GLib and it's absolutely not fun to work with.
[–]
simon_void
2y ago
you could use the Zig build system as your C build system. See
https://zig.news/kristoff/make-zig-your-c-c-build-system-28g...
[–]
rational_indian
2y ago
Cargo is just half the story. The other half is rust itself. It is an excellent language for writing abstractions.
[–]
dragonelite
2y ago
That's why i like zig it has at least the very basic with build.zig for build script. You have build.zig.zon for build.zig dependencies.