another fun obscure language is futhark
And more helpfully: to echo many sentiments above.
Learn something you are excited to learn.
Learn by doing something your are interested in and/or find useful for yourself.
Rust is a great language. It will give you insights and transferable skills for many others. You may love it, or hate it but probably won't be indifferent.
Do it in futhark, make it compile a large number of BF programs in parallel on the GPU.
My take after more than 25 (painful) years of C/C++ development: they probably have no clue what they are talking about and are just expressing an opinion based on hearsay. I know that some people often claim that Rust is a cult (then it must be very practical one
) but I swear, I haven't met a more elitist group of people than C/C++ devs (just some, not all of them of course). I know because I was one of them. It was just normal to look down on all other languages, even long before Rust existed.
Complexity-wise, Rust sits between C and C++. C is very low-level, and C++ is a lot harder to learn (yes, even harder than Rust!). You have to go through a very long and difficult phase of dealing with very nasty memory bugs before you fully “get it” (on the positive side, this also makes you appreciate Rust’s design). It’s probably the most complex language ever developed, and even after years you still feel like you have huge gaps in knowledge. Rust is a lot more incremental in that regard: once you understand the (difficult) basics, it becomes a lot easier, and you can be productive without knowing every single edge case of the language. Because of its memory safety and strictness, development becomes a lot more relaxed, almost like with an interpreted language, at least compared to C/C++. With C/C++, you have to be very careful with every line you write, and after a while you develop a certain kind of paranoia. Even after years of experience you have to be really careful and can create hard-to-find memory bugs.
The tooling in Rust is also a lot saner: using Cargo after decades of cryptic, messy CMake files and archaic tools felt almost like a religious experience.
As for the dominance... sure, C/C++ is very widespread (no wonder, considering how long it has been around), but Rust is also very popular at the moment. People are rewriting code bases in Rust now, I haven't heard anyone is doing the same with C/C++ - why would also anyone want that? This alone should tell you a lot about the usefulness of each language. We used C/C++ in the past mainly because of the lack of alternatives, there was just almost no competition in systems programming languages, but now the situation is very different.
All of big tech (and not only them) has turned their backs on C/C++, and I believe that working with C/C++ won’t be fun for most people. Anyway, the best it to just learn whatever language you like - each one can teach you something useful. C is always good to know, because it’s almost a universal standard and important for things like FFI. Personally though, I would always advise against using C++ in production systems.
In general, reasoning that is conventionally accepted in C code, but is undefined or at least "implementation-defined" according to the C Standard, is far more likely to actually blow your foot off when you do the same thing with Rust code.
For instance, consider the extremely long warning on mem::transmute about transmuting pointers. It is habit, in C code, to just say "pointers are funny integers" and gleefully ignore this kind of reasoning. C compilers will try to squirm around you doing this in C code, and may permit a great deal of nonsense because, while the C Standard allows them to determine that a pointer cast from an integer instead turns into a trap representation, people don't actually expect this to bite them. Meanwhile, rustc may show the sharpness of its claws immediately.
Of course, some patterns that are required in C code to survive an optimizing compiler are actually fine to do the "wrong way" in Rust. For instance, we don't do the "type-based aliasing" disabled by -fno-strict-aliasing, which effectively prevents reading a pointer as multiple different types. You are free to, given a pointer, cast it to another type and read the bytes as that new type. There are many different ways to make that read undefined, but "because you also read it as some other type" isn't one.
We still get to exploit strong alias analysis, but it instead uses the requirements for &T and &mut T to justify similar optimizations.
Notably, on the Rust issue tracker I have also seen lots of funny issues caused by people passing &T and &mut T across FFI and thinking that passing a pointer across FFI hides things from the optimizer. This instead gets them super-boned because &T and &mut T are definitely things rustc assigns meaning to, which do impose requirements on how C interacts with those referenced values.