I’ve got a concern: whenever you talk to colleagues or other people, and the subject of Rust comes up, they always say it’s a very poor language, and that I’d be better off learning C or C++ because those languages still dominate the industry. I’m not sure if that’s true. I’m learning Rust because I really like it – the way it manages memory – although I’ve noticed recently that the learning curve gets steeper the further you go, but it’s still great fun to read, write code and learn.
What do you think? In what other fields can the language be used? Many thanks.
do you learn programming to get a job, or mostly for fun? the answer can be quite differently depending on the motivation.
since you already started rust, I would say C is still worth learning, but I woudn't recommend C++, unless a job specifically requires it.
on the other hand, if you just like programming, choose whatever language you like. I strongly recommend you also learn some functional languages alongside rust, which helps shape the way you think, such as OCaml, Haskell, etc. if you have some java or jvm background, Scala and Clojure might also be a good starting point.
People who already know C and don't know Rust love to say this for the obvious reasons that it establishes what they already know as important and what they don't know as unimportant, thus validating their choices up to this moment.
Some people who have heard this a lot also repeat it, even though they know neither, and don't fully understand why anyone would learn either.
People who know both Rust and C are less inclined to jump to either conclusion. Sure, there's lots of legacy C, but lots of newer things are going to pick Rust. Even for legacy code, lots of codebases are trying to solve the interop problem and thus will want both in different balances. It seems unlikely knowing C is going to be useless, and I know some people have definitely gotten hired to write C, even recently. But often one's knowledge from C can be actively misleading when trying to reason about unsafe Rust code.
If you want to know what skills are in actual demand, then talk to people who are actually ready to give money to someone to have them do programming as labor, rather than to people merely speculating that job market conditions are the same as they were last year or the year before that.
I don't have that experience. You should take all such statements with a grain of salt. Typically they are personal preference and bias based on years of experience with something other than Rust. Liken it to the way that a French man is likely to tell you that French is a much better than English or here in Finland they wonder why English is not as logical and expressive as Finnish.
C and C ++ are two very different languages. I personally love C because it is about the simplest high level language one can have while being very capable. One man can write a compiler for C in a reasonable amount of time.
As for "dominating industry", for sure C and C++ are everywhere after being in used for forty years or more. I would say "so what?", the steam engine used to dominate industry, or the horse a buggy, Do note that huge industry players, Microsoft, Google, etc are adopting Rust in a serious way. Rust is getting used in the Linux kernel and Android OS.
Likely true. But also true of C++ in a big way, and other languages.
The question is what do you want? If your goal is to get a job in software you will likely be better of knowing a language that employers around you actually use. Even if it is PHP. That does not mean you cannot have fun learning Rust as well. I believe doing so helps understand a lot about programming that applies to other languages as well.
In our little company Rust gets used everywhere, from tiny embedded systems to desktop tools to sever side services. The only place we have not made use of it is in the browser where it's difficult to get away from Javascript.
Bottom line is, if you are enthusiastic about programming learn Rust. But also learn some other languages. Others have suggestions here.
To some degree you should learn every language you can, even the academic ones never used in industry, and even the weird useless ones. So fundamentally this is a kind of weird question to me, but yes you should probably at minimum be able to read C and JavaScript (or really, Typescript) and a bit of bash. Being able to write a full program is a lot more investment but worth it longer term, so really the question should really be which should you learn first for any language, not just Rust.
For Rust vs C specifically this is a bit weird, as you can to some degree write Rust as if it were C and it's both a "better C" in the specific senses of tooling and guiding you away from making common beginner mistakes, but also you do get exposed to a lot more stuff that's potentially going to get in the way as you're learning. I suspect there's no universal answer and the best you can do is try both and stick with the one that feels better - the actual programming part of the skills transfers pretty well.
If you aim to work professionally in the software industry, limiting yourself to one language is a bad move anyway. I have worked in several languages, and I'm currently paid to work in Rust, but I know people who had to leave the industry completely because they knew how to write Visual Basic 6 and earlier, or Borland Delphi (a Pascal derivative), and couldn't adapt to .NET when jobs stopped wanting Delphi or VB6, and started wanting C# or VB.NET.
And if you're programming for fun, why not use the language you enjoy most? When I was paid to work in a mix of C++ and Python, I did my spare time programs in Haskell, because I enjoyed it more.
As an aside, once you've learnt a few languages well enough to write idiomatic code in each language, you find it easier to pick up more languages: there's recurring patterns, and you build up a mental model that lets you move between languages over time (e.g. I've never learnt JavaScript seriously, but I can read it, and write basic JavaScript programs).
You have to ask yourself if those people are proficient enough in Rust to make that assessment, and if they aren't biased by other factors.
The fact another language "dominates" the industry is invalid, unless you're choosing a language for a specific project that has other constraints (existing code base, libraries, team's proficiency, ...). Otherwise, there's a large code base in Fortran and Java, but that's not a good reason not to learn other languages that are more appropriate for some tasks or that are interesting to learn because they bring new concepts.
Rust wouldn't be my first choice for some applications like UI apps, interactive REPL, or apps that really need a full OO language, but it's a great language for CLI tools, embedded software, OS development, server-side apps, and other things.
Even if you have to use C or C++ for a project, I think Rust makes you aware of some issues, so you can adopt good habits and write better code in those other languages. The same could be said of other languages like Haskell (functional programming), for example. As personal development, it's a plus in my book.
Which apps would need a language with full Object Orientation support, so that Rust would be inadequate? Can you give a few examples?
Rust wouldn't be my first choice for some applications like UI apps,
Are you referring with UI to graphical user interfaces, or user interfaces generally, including textual command line interfaces? I had the feeling that with crates like clap Rusts TUI support is OK, but I never tested it.
I haven't said Rust would be inadequate; I said it wouldn't be my first choice in some cases.
OOP has been around for long enough to provide enough examples, but I can give you a practical one I recently had. During the development of a parser generator, initially limited to LL(1) parsers, I built a few objects to represent the rules in general tree form (AST), in normalized form, and in yet another transportable format, and another object to generate the source code, which was holding the computed table and other information derived from the processed rules.
When I added support for other parser types, a lot of what already existed in those objects remained valid, but it sometimes needed a couple of extra fields while another wasn't needed any more, and the same for methods. If I had inheritance for those objects, it would have been much cleaner and easier: a common base class that can be specialized for LL(1), LALR, and other upcoming types.
Something else that I regularly miss is proper encapsulation of private methods in trait implementations. If you want to reuse common code between the trait methods, you must find a hack involving private functions defined outside the scope of the trait implementation. You can't add fields, either, since it might invalidate assumptions made in the base type. In a typical cases where this happens often, like collections, sometimes inheritance could be more appropriate than traits or generics, and where composition would feel cumbersome.
I mean graphical user interfaces. I recently fancied a little GUI app for a tool, and I couldn't find any framework that's entirely convincing[1]. FLTK was the closest I could find.
It's more a question of mature frameworks than language, though the language itself makes it more complicated. It's the typical example where inheritance used with dynamic dispatch makes sense. There are GUI crates, but the general object construction is somewhat awkward in comparison to what I used in C# (WPF), Kotlin (Android), C++ (Qt, ...), and so on.
TUI seems great, but at the risk of being unpopular, I think using it as a GUI alternative is not always the best idea. Unless I misunderstood, you can't control the size of the shell window it's running in, which is already a little strange: do you ask the user to please make the shell window at least this size when you start the app? Then you're very limited by the colours, which you don't control either.
light-weight, retained mode, as native as possible, relatively easy to interface, not constantly using the GPU, and not involving extra layers like a browser interface and Javascript ↩︎
I think Rust is a genuinely fun language to work in. All languages have their corners of frustration, and with Rust I have found that I sometimes struggle with expressing bounds in a way that makes both me and the compiler happy. (I used to think that lifetimes would be my mortal enemy in Rust, but it turned out to be trait bounds).
But taking a step back and thinking of all languages as something I will eventually leave behind as I move on to something better, Rust sticks out as the one that has given me the most utility (by far), in the sense that I became a better C and C++ programmer as a result of my struggles with Rust.
So whether your colleagues are right about market domination or not, from my perspective learning Rust can be highly useful regardless of whether you'll end up using it professionally or not.
Yes, GUI apps is one point of Rust which gives me indeed some trouble. When I started with Rust three years ago, I had some hope for the Xilem GUI toolkit, supported by the Vello drawing kit, and some more tools like Parley for Text rendering. Raph Levien was the driving force behind that, and for a few years Google paid a few devs to work on it. But now Raph migrated to Australia, I think working for a company called Canva now, and the formally paid devs lost motivation, and suddenly see Xilem very negative, now that they can speak freely See A critical review of Xilem in 2026 - HackMD
So I guess I have to investigate a few other Rust GUI toolkits now, including EGui, Iced, Slint, and Dioxus.
I haven't said Rust would be inadequate;
For me,
apps that really need a full OO language,
would give that impression, but well I am not a native English speaker.
Perhaps you could write a Blog post about your detailed experience about Rust and missing OOP features. I often see two very controversial options: Some say that OOP with inheritance is an important feature, and others say that Rust with its traits and trait objects does not need OOP and that Rusts design is generally superior. Personally, I had the feeling that some software, like GUIs and Games, might be easier to create with OOP. Bevys way with its Entity Component System might work fine, and immediate mode GUIs like EGui might work fine also, but I am unsure if we can create large apps like FreeCad (Qt) with Rust.
Can you be more specific and describe why those people say it's a poor language (ask them for details if they didn't say)? Otherwise the discussion is completely open ended and could go on forever.
Rust isn't "poor". It is adopted by Linux and Microsoft.
Lots of people are now taking part in "rewrite it to Rust from Java/Python/You-Name-it and gain 10K performance boost" activities.
This is first successful attempt to make "better C": a language that doesn't force you to use GC and RC but is 100% safe.
At the same time: knowing C is crucial. It is a "Lingua Franca" and I believe every developer should be able to, at least, read it. How could they read MSDN or unix mans without C?
C++ is a complex beast. Knowing it is a good thing, but not mandatory (unless you are working in a project written in C++ e.g. AAA gamedev).
"dominate the industry" is a broad definition. There are web-developers who would say (if you asked them) that PHP and WordPress or JavaScript (well, TS) dominate the industry, but that doesn't mean PHP or TS must be your next language)
To be honest, I haven't missed those features too much, probably because my experience with Rust is still young and has been confined to cases where they're not very important.
I know inheritance is a debated feature, even in general. I'm not much opinionated about it. I think it's just one tool among many, and Rust already offers a lot of other tools, so perhaps adding that one isn't be a priority right now. Traits are already powerful indeed, and I don't know if they'd mix well with inheritance—maybe, I just haven't thought about it. Maybe one day... I actually have no idea how the Rust team feels about it.
For GUI, perhaps it makes sense to use Rust if it provides enough advantages in the core of the application vs another language that already has the desired framework, even if there's a little more friction? Maybe not if it's very GUI-intensive and relatively shallow processing-wise. It really depends on what one's making, I guess.
Do what you want to do, not what other people want to do.
Their words are not particularly useful unless they have a actual argument based on logic andfacts against rust and not "I declare, by decree: rust bad, C good".
I think that alone is completely sufficient reason to stick with learning Rust. Whether your work requires you to learn Rust is a separate matter, and it only affects how much study time you can allocate to Rust.
As for the claim that 'Rust is a bad language,' I'm sorry to say that I can't refute it without first hearing the reasons behind it. I don't know why they say Rust is a bad language. If there are aspects of Rust that feel a bit uncomfortable, that's perfectly normal—the same is true for C/C++, and the same is true for OCaml... In fact, it's true for every programming language I've encountered. We should really remember that this is probably what we call a 'trade-off.'