- 浏览: 620179 次
- 性别:
- 来自: 上海
-
最新评论
-
月光杯:
问题解决了吗?
Exceptions in HDFS -
iostreamin:
神,好厉害,这是我找到的唯一可以ac的Java代码,厉害。
[leetcode] word ladder II -
standalone:
One answer I agree with:引用Whene ...
How many string objects are created? -
DiaoCow:
不错!,一开始对这些确实容易犯迷糊
erlang中的冒号 分号 和 句号 -
standalone:
Exception in thread "main& ...
one java interview question
文章列表
看这个分析的吧:
http://uniseraph.iteye.com/blog/439873
很不错,从这个code和DiaoCow那里可以学到不少东西!
git repo: https://github.com/evanmiller/tinymq
http://diaocow.iteye.com/blog/1734253
一直疑惑诸如command line
erl -noshell -s Module Function Arguments -s init stop
后面加的init stop是干什么用的,看了stackoverflow上面一个问答清楚了:
http://stackoverflow.com/questions/5269300/run-erlang-application-without-terminal-depending
One useful variation is to also call the stop/0 function of the init module so that ...
当我也开始为erlang不支持全局变量开始感到不爽的时候,看到了某人的吐槽:
http://osdir.com/ml/erlang-questions-programming/2002-12/msg00142.html
引用
I don't know a single professional programmer that can't get by without
global variables. Furthermore, if a programmer feels he/she _cannot_ get
their work done without globals they (IMH ...
I think erlang beginners like I can be confused about the commas, semicolons and periods used in the end of lines.
Here is an explanation when you should use which.
http://stackoverflow.com/questions/1110601/in-erlang-when-do-i-use-or-or
原code参见http://en.literateprograms.org/Bubble_sort_(Erlang)
虽然原文有解释,可能还是不太好理解erlang写得这么间断晦涩的程序。
1 % Copyright (c) 2012 the authors listed at the following URL, and/or
2 % the authors of referenced articles or incorporated external code:
3 % http://en.literateprograms.org/Bubble_sort_(Erlang)? ...