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

One question: Why is Zig implemented in C++? What was the reason behind the choice?


It's mostly C, with some templates sprinkled in.

Zig depends on libclang and LLVM. Both of these are C++ APIs. Both expose a C API wrapper, but with not all features exposed that zig needs to use.




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

Search: