主题:【原创】介绍一下Go语言(1)之前的话 -- zllwy
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只是一个简单的小例子。如果你觉得不好,为什么不再补充一篇呢?
也许我是写得不怎么样。不过能引起你的兴趣,我的目的也达到了。就算抛砖引玉吧。
- 相关回复 上下关系8
压缩 4 层
🙂You didn't get my point 1 吹西门的雪 字923 2011-01-29 02:48:19
🙂Haskell zllwy 字324 2011-01-29 11:53:51
🙂Bingo 吹西门的雪 字997 2011-01-29 21:27:38
🙂看来我写得很烂
🙂写得完全不烂,但是也许可以展得更开 4 明日枯荷包 字1269 2011-01-31 07:10:26
🙂谢谢 1 zllwy 字929 2011-02-01 14:22:35
🙂有没有接触过Lua的河友。可否简单介绍一下 1 GUNXU 字1275 2011-02-01 08:44:05
😄【商榷】我想你也没有明白我的意思 zllwy 字348 2011-01-29 11:01:18