<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 16 Sep 2007, at 15:19, Ahmed Ali wrote:</div><div><br class="webkit-block-placeholder"></div><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">I'll try to give you my view on the syntax. The comma (,) is like (;) in</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">languages like Java/C. Each method is ended with a Dot (.). If you have more</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">than one method with the same number parameters (called arity in Erlang),</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">you need to separate them with<span class="Apple-converted-space"> </span>(;).<span class="Apple-converted-space"> </span>There is no similar construct in</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">Java/C for this.</font></p></blockquote><div><br class="webkit-block-placeholder"></div><div>correct.</div><br><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">Similarly, you can think of if/case statements, which use (;) to separate</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">different if/case conditions,<span class="Apple-converted-space"> </span>(,) to separate clauses for each condition,</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Verdana" size="3" style="font: 11.0px Verdana">and (.) to indicate the end of if/case statement.</font></p> </blockquote></div><div><br class="webkit-block-placeholder"></div><div><div>not quite.</div><div>if the end of the if/case clause is not the end of the entire function it will not end with a period.</div><div>a period-whitespace denotes the end of an entire function.</div><div><br class="webkit-block-placeholder"></div><div>Cheers,</div><div>Emmanuel</div><div><br class="webkit-block-placeholder"></div></div><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">---</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Anyone can do any amount of work, provided it isn't the work he is supposed to be doing at that moment. <span class="Apple-converted-space">– </span>Robert Benchley</div></div></span></span> </div><br></body></html>