Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


> 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: