This is why everybody says just use some existing c lib
This is why everybody says just use some existing c lib
I also doubt I have space to enumerate the languages that claim to "easily wrap c libs." None of them easily do that. That statement imagines that there's some basic consistency between APIs (and that those APIs are asking for and returning fairly simple types).
(If you're hearing a combative tone, it's unintended; I'm asking seriously, because I would love for this to be true!)
I think parent means that Zig is a better language with regards to being the target for C to be imported into than C and that is the benefit of being a more modern language with flexibility following more modern conventions. This is combined with the mostly seamless ability to utilize most C functions and types without too much strife.
for example if two c libs declare a function with the same name youre not gonna have a good time using them both from c. I believe that's not a problem in zig.