Source: What is the zero value, and why is it useful?
Digest:
This property of always setting a value to a known default is important for safety and correctness of your program, but can also make your Go programs simpler and more compact. This is what Go programmers talk about when they say "give your structs a useful zero value".
一句话概括就是,开辟已知类型的内存空间
,不用人为指定要开辟的内存大小,可以更紧凑地利用内存空间,让编程变得简单,并且提高程序的安全性和正确性。