4 ms·
However returning errors from failing constructors would not be very clean. C++ also does not have decent macro system, which is leveraged in Rust error handli
by _flux 5y ago
However returning errors from failing constructors would not be very clean.
C++ also does not have decent macro system, which is leveraged in Rust error handling (the derive system).
- pjmlp 5y agoTrue, but for that you will need to be using classes to start with. Yeah macro like tooling in C++ is clunky, but on the other hand I think Rust goes overboard with macros.