4 ms·
That's not what I mean... There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create
by AlienRobot 3mo ago
That's not what I mean...
There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.
- lerno 3mo agoThe Zig C import is going away, moving into a tool invoked from build.zig, so this might not be an ideal thing to point to. C3 just has everything C compatible so not just calling into C but also C calling to C3 is just completely normal with no special compatibility types/functions, unlike Zig. So which one has the most compelling feature kind of boils down to what one focuses on. You can find Odin users that praise Odin for finding their sweet spot. Similarly for C3 users, just like Zig users. And in each of those, they will say that the others didn’t quite match what they wanted (not in all cases though: the relatively high visibility of Zig means a lot of its users is unaware of the languages with less visibility, and just pick it by default)