News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by skohan on Saturday January 16, 2021 @06:01AM (#25801503)
This was one of the most redeeming things about Objective-C. It is a superset of C, and when I was working with it, I found myself writing the high-level stuff in ObjC, but with a lot of pure-C functions sprinkled in. It was really nice for working with C libraries like OpenGL, because you could find an example online and directly apply it without going through any kind of translation step. It was a really cool feature to have.
Re:Why Zig when there is already C++, D, and Rust? by pjmlp on Saturday January 16, 2021 @04:09PM (#25805534)
I share a similar experience with C++.

However that compatibility is also what makes Objective-C and C++ impossible to ever be fully safe, without breaking compatibility with the C subset.

Static analysis help, but only when all code is available.