Go编程语言是否正在取代C++?

huangapple go评论99阅读模式
英文:

Is the Go programming language replacing C++?

问题

我在一些博客上读到,Go是一种更好的系统编程语言,将取代C/C++。我目前正在学习C++。所以,我想知道我是应该继续学习C++还是转向Go?

英文:

I have read on some blogs that Go is a better system programming language and is going to replace C/C++. I am currently learning C++. So, I was wondering whether I should continue learning C++ or move to Go?

答案1

得分: 4

Go语言专为可靠、快速的在线服务而设计。它是Google App Engine推荐的语言。它与C语言具有一般的功能对等性,还具有额外的可扩展性特性。也许,有一天它会被用于嵌入式编程和客户端应用程序,但目前还没有发生。

C语言在许多应用领域中被使用。没有其他语言能够与其广泛的应用领域相媲美。然而,作为第一门语言,它不会帮助你养成良好的编程习惯。

C++是一种多范式语言。它支持深度、通用的元编程。许多C++用户实际上是在使用“嵌入式领域特定语言”(EDSLs),其中一个库提供了在C++语法内定义的功能。Go语言不尝试提供这种深度,因为那是一个复杂性的潘多拉魔盒。

英文:

Go is designed for reliable, fast online services. It's the recommended language of Google App Engine. It does have general feature parity with C, plus additional scalability features. Perhaps, one day, it will be adopted for embedded programming and client-side applications, but that has yet to happen.

C is used in many, many application domains. No other language approaches its breadth of use. As a first language, though, it won't help you develop good habits.

C++ is a multi-paradigm language. It supports deep, generic metaprogramming. Many users of C++ are really using "embedded domain-specific languages" (EDSLs) where a library provides functionality defined within the C++ grammar. Go does not attempt to provide this depth, which is a Pandora's box of complexity.

huangapple
  • 本文由 发表于 2015年2月5日 12:52:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/28336450.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定