News for hackers. Stuff that matters.
Re:Zig VP of community comments on Rust by chlorion on Sunday September 11, 2022 @12:59AM (#32796954)
They aren't :)

The main thing I guess is dealing with C APIs in C++. You do have to use C APIs in Rust as well though, but maybe dealing directly with plain C APIs is less common because of how annoying it is. The only way to avoid that pain is to make a Wrapper library that exposes a more idiomatic and possibly "safe" interface. C++ can wrap C APIs just as well though.

I agree with you though, C++ has been doing RAII for a while and I'm not sure why people seem to think Rust invented it. Idiomatic C++ APIs and code are just as "automatic" as Rust for the most part!

There are no comments on this comment yet.