I wrote this article a long time ago. In the meantime, my opinion on some aspects has changed.
In order to give a more balanced perspective on the pros and cons, I suggest to read this comparison on Go vs Rust instead, which I wrote in collaboration with Shuttle š
āRust or Go, which one should I choose?ā is a question I get quite often. Both languages seem to be competing for the same user base and they both seem to be systems programming languages, so there must be a clear winner, right?
Go: practical, pragmatic, plain

I donāt think Go is an elegant language. Its biggest feature is simplicity easiness. Go is not even a systems programming language. While itās great for writing microservices and tooling around backend infrastructure, I would not want to write a kernel or a memory allocator with it.
But with Go, you get things done ā fast.
 Go is one of the most productive languages Iāve ever worked with. The mantra is: solve real problems today.
Rustās strong guarantees come at a cost

Rust in comparison is hard. It took me many months to become somewhat productive. You need to invest a serious amount of time to see any benefit. Rust is already a powerful language and it gets stronger every day. It feels much more like a pragmatic Haskell to me than a safer C.
Donāt get me wrong: I love Rust, and it helped me become a better programmer. It is certainly a nice language to learn. The big question is, if it is the right choice for your next major project.
Hereās the thing: if you choose Rust, usually you need the guarantees, that the language provides:
- Safety against 
Nullpointers, race conditions and all sorts of low-level threats. - Predictable runtime behavior (zero cost abstractions and no garbage collector).
 - (Almost) total control over the hardware (memory layout, processor features).
 - Seamless interoperability with other languages.
 
If you donāt require any of these features, Rust might be a poor choice for your next project. Thatās because these guarantees come with a cost: ramp-up time. Youāll need to unlearn bad habits and learn new concepts. Chances are, you will fight with the borrow checker a lot when you start out.
Case-study: Primality by trial division
Letās say, you want to check if a number is prime. The easiest way is to check if we can divide the number by any smaller natural number (without a remainder). If not, we found a prime number! This approach is called trial division.
Hereās how to do that in Golang (courtesy of Rosetta Code):
func IsPrime(n int) bool 
And hereās the same thing in Rust:
At first sight, both solutions look pretty similar. But if we look closer, we can spot some differences.
- In Go, we use a simple switch-case statement. In Rust, we use a 
matchstatement, which is much more powerful. - In Go, we use a simple for-loop to iterate over the numbers 2 to n. In Rust, we use a range expression (
2..n). - In Go, we use two 
returnstatements, in Rust we have onereturnexpression. In general, most things in Rust are expressions, which can be returned and assigned to a variable. Read more about expressions here. 
In many areas, Rust is more functional than Golang. You could rewrite the above code using the any method, which is implemented for Range.
It might seem a little alien at first, but it will become second-nature after a while.
This was just a quick example, of course. I suggest, you browse some code on Rosetta Code to get a better feeling for both languages.
Case study: Finding duplicate words in text files
If youāre more like a visual type, here is a video where I write a simple concurrent program in Go and Rust to compare both languages:
Some things I prefer in Go
- Fast compile times
 - Pragmatic problem-solving approach
 - Nice ecosystem for typical DevOps tasks
 - Batteries-included standard-library
 - IDE support
 - Simple error handling
 - The mascot š
 
Some things I prefer in Rust
- Safety: No null pointers, no data races,ā¦
 - Fine-grained system control
 - Incredible runtime speed (comparable with C/C++)
 - Zero-cost abstractions
 - Awesome, open-minded community
 - Simple package management with cargo
 - Support for Generics in form of traits
 - C interop and FFI
 
Conclusion
99% of the time, Go is āgood enoughā and that 1% where it isnāt, youāll know. And then take a look at Rust, because the two languages complement each other pretty well. If youāre interested in hands-on Rust consulting, pick a date from my calendar and we can talk about how I can help.
After all is said and done, Rust and Go are not really competitors.
