This is, of course, the correct observation, ; and , are separators not terminators.<br><br>; is a sequential or SEPARATOR and it is consistently used as such whether in guards or function/if/case/receive clauses.<br><br>For , the situation is not as clear. It is both a sequential separator between expressions and an argument/element separator.
<br><br> We wanted to allow sequences of expressions in clauses without having to wrap them with begin/end as you do in for example C. C has , as an argument separator and ; as a statement terminator.<br><br>If these were GOOD choices is a completely different matter. I personally am so used to it that it is not a problem and I don't really see the problem. :-)
<br><br>Robert<br><br><br><div><span class="gmail_quote">On 19/09/2007, <b class="gmail_sendername">Minsloc Tarren</b> <<a href="mailto:minsloc@gmail.com">minsloc@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But why would anybody want this ?<br>If the meaning of the code doesn't change, the only thing is everybody would be forced to type extra characters (and it's the de-facto standard to use semicolon as separator or end-statement character, this would only confuse newcomers.
<br><br>Same goes for the if example, 4 semicolons instead of 3  (I'm not counting the one serving as an and).<br><br>The rule is simple, _separate_ expressions with "," and branches with ";".<br>
<br>
Or bring forth a SOUND argument that will convince all of those who are used to this kind of notation for years (I'm not an long time erlanger, but this was a no-brainer, seemed just natural and logical) that there is real benefit to it (other then that you would cut-and-paste your "programs" together twice as fast ;-)))))))
<br><br>Just try to go to java forum and convince them to switch to prefix notation (or just shout as loud as you can "Lisp, Smalltalk, Ruby, dynamic typing" etc, either will get your ass busted ;-))))).<br><br>

<br><div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">Doug Edmunds</b> <<a href="mailto:dougedmunds@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">dougedmunds@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Perhaps Erlang should be more like Español:<br><br>¿No problema?<br>¡ No problema! <div><span><br><br><br><div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">Joe Armstrong
</b> <<a href="mailto:erlang@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
erlang@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">,What about English, should we also have leading commas?
<br><br></blockquote></div>
</span></div><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">erlang-questions@erlang.org
</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote>

</div><br>
<br>_______________________________________________<br>erlang-questions mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br>