|
|
|
|
|
by xtho
5652 days ago
|
|
"ad 1.)" is completely wrong: From http://www.erlang.org/faq/academic.html: 10.3 Where does Erlang syntax come from?
Mostly from prolog. Erlang started life as a modified prolog
Maybe this means Prolog syntax isn't really that weird? |
|
The ";" vs "." thing is also on Erlang. Prolog has a function to read the next clause (much like Lisp's read parses the next sexp), and Prolog clauses end in ".". The Erlang interpreter seems to have been implemented so it read every alternative for a pattern in one step, so it ended all except the last with ";". ";" is Prolog's "or" operator, "," is "and". Prolog just ends every pattern with ".".
That said, you get over those minor syntactic issues pretty quickly, and I'll take a language with ugly syntax but beautiful semantics over one with ugly semantics any day.