by johnnycerberus · 5y ago · 0 comments
Consider initialization: C++ has dozens of different ways of initializing objects that in turn interact in complicated ways with move semantics and references and so forth. Rust's initialization story by contrast is straightforward: you just make the thing you want to make using struct or enum literals and maybe wrap those initializers in functions if you want.
If you use vanilla Rust, it honestly feels quite high level, almost like Ruby or Python.