4 ms·
People who are looking for a modern C++ should take a serious look at Rust. It has all the things you want in modern C++ while getting rid of the cruft of the l
by wpdev_63 8y ago
People who are looking for a modern C++ should take a serious look at Rust. It has all the things you want in modern C++ while getting rid of the cruft of the language.
- krona 8y ago> It has all the things you want in modern C++ Variadic templates?
- TillE 8y agoRust doesn't even have default arguments, a feature of C++ since forever. I've written actual code in both languages, and I still find C++ much more usable.
- con22 8y agoRust is your silver bullet?
- pjmlp 8y agoI do like playing with Rust, but it still does miss a few things from C++. First of all, cargo does not understand binary dependencies, compiles everything from source. Second, my only use case for C++ is for native code when integrating system code with Java, .NET, UWP, Swift, Objective-C. Third, my C++ code can also be used on the GPGPU, with nice debugging tools from all vendors. There Rust misses the integrated workflow and IDE debugging experience that I have with C++ on those environments. No doubt Rust will get there, by then I would gladly use it as well, but it still needs to mature a bit more. Today's Rust release also had many goodies.
- alexeiz 8y agoI'd love to. But seeing how Rust adopters struggle with something as trivial as a linked list (https://news.ycombinator.com/item?id=16442743 https://news.ycombinator.com/item?id=16442743), doesn't inspire me.
- kllrnohj 8y agoOn the other hand should it be trivial to implement a linked list? They are an extremely bad data structure for modern CPUs, after all. Worth noting that it's doubly linked lists specifically that are hard. So cyclic structures.
- Retra 8y agoLinked lists are easy. People are struggling with safe linked lists, because they think they should be as easy to write as an unsafe ones. But if you're already willing to use C or C++, you've got no reason to avoid unsafe.