Wang Yin Criticism Golang

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

A comprehensive evaluation of Go language

  • Syntax: type definition requires a lot of "eyeball parse"
  • Syntax: Switch syntax in order to appear simple, the case and the cond are merged, resulting in confusion
  • Tool chain: Also lacks, the tool is immature, has the bug, does not have the IDE to be usable
  • Toolchain: The package is a bit confusing
  • Memory Management: GC is a simple mark-and-sweep, also compared to the original
  • No "generics".
  • Multiple return value design does not have a compiler check mechanism, completely need the caller care, use trouble
  • interface-based OO design is cumbersome to use.
  • Goroutine is not a revolutionary thing, many needs can be added
  • Defer is heavily abused at this stage
  • The element of string in the library code is byte, which is used to iterate through the characters that need to be converted into words.

Wang Yin Summary: No python elegant, no Java powerful

This is the 2014, language expert Wang Yin wrote the commentary Golang's article,
Recently turned out to look at this article because recently planned to learn a bit golang.
At the same time, I also want to see, 3 years later, Golang now how.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.