I am coming from a C background. What should I learn next to use for command line applications? C++ or Rust, and why?
Rust or C++
Other urls found in this thread:
stackoverflow.com
eclipse.org
twitter.com
Just use Go, it has more libs, easier to use, and non shit syntax, and static binaries. It's what Rust trie
As a C fag, you will like neither of C++ or Rust.
Rust is geared towards experienced C++ devs who go sick and tired of C++'s idiosyncrasies. You have to be fully aware of C++ pitfalls to be able to really appreciate what Rust has to offer.
Rust is the better language but currently the less industrially relevant one. Luckily, you can get a CS job without learning C++; do so, and wait a few years until you can make money programming in Rust.
But it has garbage collection, which isn't really something I want to have
lol no generics
lol no sum types
So you;re saying down the line that Rust would be worth learning?
I mean, I obviously can't predict the future, but programmers seem to like it and teams that start rust don't seem to drop it later, so probably.
C++ is a whole different animal compared to C
problem is OOP doesn't play well with manual memory management, try to learn about vectors and smart pointers, then learn about the STL
>That pic
lmao I remember this claim. But it turns out Rust has all the esoteric bullshit of C++ with all the fiddly difficulty of Haskell. The target of safety AND control just made it unwieldy.