Go编程语言的优缺点是什么? [英] What are the advantages and disadvantages of Go programming language?
本文介绍了Go编程语言的优缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你认为Go的优点和缺点是什么?
您能告诉我们您使用这种编程语言的真正用处吗?
解决方案
优点:
- 编译速度非常快。
- Go支持语言级别的并发性。 >函数是Go中的第一类对象。
- Go有垃圾回收。
- 字符串和地图都内置在语言中。 b
$ b缺点:$ b
$ b- 使用Go分发的软件包非常有用,但仍有一些图书馆你会错过。最着名的是一个用户界面工具包。
- 虽然围绕它的讨论很多,但Go并没有支持泛型。
其他值得注意的优点或缺点:$ b
$ b- 编译为机器码。
- Go是非常强类型的。
- Go在传统意义上不是面向对象的。
Not so long ago Google came out with this new programming language, which was said to be fast as C and intuitive and simple as python. I will not judge this assertions, but instead ask you:
What do you think are Go's advantages and disadvantages?
Can you tell us about a real use you have given to this programming language?解决方案Advantages:
- Go compiles very quickly.
- Go supports concurrency at the language level.
- Functions are first class objects in Go.
- Go has garbage collection.
- Strings and maps are built into the language.
Disadvantages:
- The packages distributed with Go are pretty useful, but there are still some libraries you'll miss. Most notably a UI toolkit.
- There is no support for generics in Go, although there are many discussions around it.
Other points of note that could be advantages or disadvantages:
- Go compiles to machine code.
- Go is very strongly typed.
- Go is not object oriented in the traditional sense.
这篇关于Go编程语言的优缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文