Hacker News new | ask | show | jobs
by donpdonp 2456 days ago
zig's C-interoperability is second to none and using libcurl works great for networking.

example: https://github.com/donpdonp/zootdeck/blob/master/src/net.zig

2 comments

Nim and d both have comparable interop, and nim even works with c++.
To be fair, Zig's C interoperability appears to be inspired or borrowed from Swift's little known secret called the ClangImporter.