Re:Zig; what I think after months of using it
by chrisco255 on Wednesday February 05, 2025 @01:35AM
(#42944711)
Zig has a C and C++ compiler built into it and works seamlessly with it. Several C/C++ projects use Zig as a build tool. Zig makes different trade-offs with C++ from a language design standpoint. C++ has a lot more footguns to create UB in the first place.
[ Parent
| on HN ]
Re:Zig; what I think after months of using it
by pcwalton on Wednesday February 05, 2025 @01:37AM
(#42944725)
> C++ has a lot more footguns to create UB in the first place.
I'd actually give the edge to C++ over Zig, because of smart pointers (not that I'm implying smart pointers are anywhere near sufficient).