Hacker News new | ask | show | jobs
by neutronicus 15 days ago
Yeah, I mean … as a C++ dev I have those same existential “what’s the point” questions about Zig.
1 comments

AFAIK zig is not trying to be "better C++" (that is Rust), zig is more like "better C". a ergonomic low level lang with very little abstractions. zig explicitly doesn't want to be better C++ or rust
Oh, I get that.

That’s what I’m saying. I hear “Better C” and my initial reaction is “what’s the point”. Like, why would you aim for “Worse C++”?

I mean, compile times. That’s fair.

Even those aren't that bad, when using C++20 modules, coupled with binary libraries.

Granted we "aren't modules" yet, unless being on latest compilers with msbuild/cmake/ninja tooling.

Perhaps theoretically, with good practice, but at my job it’s fucking brutal.

But to your larger point I would much rather work on improving that than let it drive me back to C fetishism.