DEV Community

Discussion on: Will Golang replace C/C++?

Collapse
 
kapilsh profile image
Kapil Sharma
  1. Go IS a very functional language. functions are first class citizens in Go
  2. Go is not as efficient as C/C++. In certain contexts, it's faster than java but doesnt even beat java in most cases

I think Go is a great server-side language and it will shine for backend systems. It already is for that matter. I see it replacing java (may be) but when you say replace, you fail to appreciate the amount of inertia it takes to move years-old code from one language to another. I mean it takes people years to move versions of compilers leave alone languages.

So at the end, my answer is it depends. For newer code, I can see Go making inroads into the traditional java market but most people are not gonna re-write their enterprise code in another language. It's a massive investment of time and money. Secondly, Go is definitely not an alternative to C/C++. When you need pure performance, nothing comes close to C/C++ - except for may be Rust in recent years.