3 ms·
That code looks prettier than some C++ I've seen, though. As someone who works on a medium-sized C++ codebase, Rust is definitely interesting to me. If nothing
by s_tec 10y ago
That code looks prettier than some C++ I've seen, though.
As someone who works on a medium-sized C++ codebase, Rust is definitely interesting to me. If nothing else, Rust's dependency management and cross-compilation tools would solve many of our headaches. We use a giant ball of shell script and Makefiles to cross-compile our dependencies for iOS and Android, and Cargo/rustup seem like they would solve much of that. We've also written a complicated system of macros for error handling, but Rust has that stuff built into the language. Oh, and it's just as fast as C++, so we wouldn't take any performance hit. If we could do the project over from scratch, I would definitely push for Rust.
- mmstick 10y agoThis what it would actually look like: https://gist.github.com/mmstick/797fbc1cf20c92f05d33a85c38e1ffb1 https://gist.github.com/mmstick/797fbc1cf20c92f05d33a85c38e1...