News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by beagle3 on Saturday January 16, 2021 @07:43AM (#25801873)
It isn’t so black and white.

Nim, if you let it use C as a backend, will let you use C macros, despite being generally safe and not remotely a C superset.

Yes, the use of C macros (and any kind of ffi) is unsafe, that cannot be avoided. But it doesn’t need to be a c superset (and indeed, when you use JS as a backend, or the native LLVM backend, you get no access to C macros)

There are no comments on this comment yet.