2 ms·
> code ends up hiding a lot less complexity than rust code Are you really saying this about C++? For real? I quite like C++ but the idea that it doesn't hide
by IshKebab 3y ago
> code ends up hiding a lot less complexity than rust code
Are you really saying this about C++? For real?
I quite like C++ but the idea that it doesn't hide complexity is hilarious. Something as simple as `a = b` can call constructors, copy constructors, assignment constructors, move constructors (depending on a lot of details), do implicit type conversion, throw exceptions, etc. etc.
In Rust it's just memcpy.
Maybe you're thinking of proc macros which can do a lot more than in C++, but they're just a more convenient way of doing codegen which you can equally do in C++ (e.g. to generate Protobuf code).
- lionkor 3y agoC++ hides complexity, yeah, but arguably Rust should have learned from that, no? Instead, Rust opted to do as much syntactic sugar as possible.
- IshKebab 3y ago> Rust opted to do as much syntactic sugar as possible. Of all the criticisms of Rust, this is really the weirdest. What syntactic sugar do you find objectionable in Rust? It has almost none. Are you talking about macros?