<div>The simple answer is 'because Prolog did it that way first'. I have written <a href="http://ferd.ca/on-erlang-s-syntax.html">http://ferd.ca/on-erlang-s-syntax.html</a> to give 2-3 different options on how to read Erlang's line endings in a way that makes sense. Note that considering them 'line ending' is a mistake in the first place. ',' and ';' are separators (they go in-between expressions or constructs, not after them). Only '.' terminates 'forms', which are function declarations and module attributes '-KeyWord(Args)', and expressions in the shell.</div>
<br><div class="gmail_quote">On Wed, Dec 21, 2011 at 2:21 PM, August Schwartzwald <span dir="ltr"><<a href="mailto:august.schwartzwald@gmail.com">august.schwartzwald@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I started to learn Erlang about a month ago. I really like it and think that with some more practice it will become a both unique and powerful tool in my growing box of programming languages. However, there is one thing about it that I find extremely annoying: The line endings.<br>
I currently know 5 programing languages, they have either 0 (python) or 1 way to end lines (usually the ';' character). Erlang totally stands out here and requires that lines are ended in one of 4 different ways.<br>
<br>
Did some googling without finding any good reason to why the language works in this way. Can anyone here explain this?<br>
<br>
Thanks<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>