西西河

主题:【原创】介绍一下Go语言(1)之前的话 -- zllwy

共:💬92 🌺231
全看分页树展 · 主题 跟帖
Bingo
家园 看来我写得很烂

That's exactly what I meant by saying "inherent succinctness". This is precisely what matters for simplicity: the nature of a language's power by design. Now you've got it, yet you dismissed it as a trivium, what a pity.

No side-effect到底是好还是不好仁者见仁。从某种程度上来说也是导致haskell流行不起来的原因。即使是functional language本身,也不完全抛弃side effect。目前的趋势是在procedural language里面加入functional的元素。我可没有dismiss这个design,只是觉得对大多数程序员来说,这是更是一种约束。而通过增加限制条件来simplify在我看来并不是真正的simplicity。

PS: Simplicity of a language is not measured by how many keywords it has or does it use symbol-table during the compilation process, these are true trivia. Otherwise, one would argue LISP is the simplest language there ever is.

当然不是,只是从一个侧面来衡量。No symbol table也不是true trivia,而是为了简化compiler,提高编译速度考虑的。

Well, much confused by your introduction, I went ahead reading the tutorial and specification of the Go language, and wrote a couple of small programs myself, I can see the power of this new language clearly resides in the go-routine concept, which makes the concurrency much easier to handle than most of other languages.

If I would evangelize the simplicity of this language, I would've chosen the example of goroutines, which is a heck lot better demonstration.

goroutine正是我选择go的最主要原因。我在第1部分写得很详细了。另外我在第4部分里面重点写了goroutine。web server只是一个简单的小例子。如果你觉得不好,为什么不再补充一篇呢?

也许我是写得不怎么样。不过能引起你的兴趣,我的目的也达到了。就算抛砖引玉吧。

全看分页树展 · 主题 跟帖


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河