3 ms·
that's true and I am very excited for ranges. sadly I am still waiting for c++17 to be switched on in my build system :/ still there's lots of other stuff that
by leetcrew 6y ago
that's true and I am very excited for ranges. sadly I am still waiting for c++17 to be switched on in my build system :/
still there's lots of other stuff that's more verbose in c++ than rust, often because it was bolted on much later. think about getting individual elements out of a tuple.
in c++: `std::get<0>(tuple)` for each desired element or `std::tie(elt0, std::ignore, elt2) = tuple;`
in rust: `tuple.0`, not sure if there's an equivalent to the std::ignore/std::tie combo
- pjmlp 6y agoC++ has structured destruction now.
- Rusky 6y agoStructured bindings work for simple cases, but Rust's are much simpler and more powerful.
- pjmlp 6y agoUntil ISO C++23 papers for pattern matching get accepted.
- adamnemecek 6y agoWhy wait?
- pjmlp 6y ago40 years of IDE tooling, libraries, GUI toolkits, GPGPU designed for its memory model, shader language dialects with graphical debuggers, tier 1 support on the OS SDKs from Sony, Nintendo, Apple, Google, Microsoft, Arm, Samsung, Huawei, certified compilers for industrial deployments, an international standard independent of US sanctions.
- adamnemecek 6y agoThere is an equivalent to tie let Tuple { elt0, elt2, ..} = value.