3 ms·
> Which C++ subset should someone choose? Easy. The subset outlined in Effective Modern C++ > What about the people who don't use exceptions? Rust doesn't ha
by autoreleasepool 11y ago
> Which C++ subset should someone choose?
Easy. The subset outlined in Effective Modern C++
> What about the people who don't use exceptions?
Rust doesn't have exceptions.
> What about the people who don't use templates?
Rust doesn't have templates.
- bsder 11y ago> Rust doesn't have exceptions. So, C++ does. You asked about a tutorial for idiomatic Rust coming from C++, and then specified the full C++ set. So, you have to give the Rust-y equivalents to exceptions, RAII, templates, reference types, virtual classes, etc. Personally, I'd rather have a C to Rust equivalent--it's a lot easier. Especially a tutorial and primer on making Rust work in an embedded toolchain. Being able to have a compiled, modern language actually work on embedded hardware would be excessively useful.