Go的美化印刷工,现在可以进行语法简化了。
Gofmt, the Go pretty-printer, now makes syntactic simplifications where possible.
首先,在改进语法的同时,大大简化框架和库作者的能力。
First, it will greatly simplify framework and library writers' capabilities while improving their syntax.
你可以在一些更复杂的字面函数中使用这种简化的语法,就像我们将在《第3章 - 要点详解》中看到的那样。
You can also use this short-hand syntax in some more complex function literals, as we will see in Chapter 3, Rounding Out the Essentials.
So, long story short after this fairly arcane syntax, the end result is completely straightforward, do the following 10 times.
如此看来,这个长篇故事经过这个奇异的语法规则,简化后就立马简单明朗了许多,只需要重复做10次就OK了。
应用推荐