<div>Hi.<BR>Well guys, I'm struggling with Erlang syntax.<BR>Does Erlang has line terminators like C++ or Java?<BR>Consider this sinppet:<BR>----------<BR>convert_list_to_c([{Name, {f, F}} | Rest]) -><BR> Converted_City = {Name, {c, (F -32)* 5 / 9}},<BR> [Converted_City | convert_list_to_c(Rest)];<BR>----------<BR>Why there is a comma after {Name, {c, (F -32)* 5 / 9}} ?</div> <div>Another snippet and the same question:<BR>----------<BR>format_temps(List_of_cities) -><BR> Converted_List = convert_list_to_c(List_of_cities),<BR> print_temp(Converted_List).<BR>----------</div> <div>Another one:<BR>----------<BR>foreach(Fun, [First|Rest]) -><BR> Fun(First),<BR> foreach(Fun, Rest);<BR>----------</div> <div>How to define blocks? using { } for example ? or by using indentation (aka Python) ?<BR>All these snippets are from Erlang docs.<BR>Thanks.</div><BR><BR><DIV
id=RTEContent> <DIV align=left> <DIV align=left><FONT face=georgia color=#444f75 size=2><STRONG><EM>Deep into that darkness peering, long I stood there, wondering, fearing, Doubting, dreaming dreams no mortal ever dreamed before.</EM></STRONG></FONT></DIV> <div align=center><STRONG><FONT face=Verdana color=#444f75><EM>E.A Poe</EM></FONT></STRONG></div> <DIV align=center><STRONG><FONT face=verdana color=#444f75 size=7><EM></EM></FONT></STRONG></DIV> <DIV align=left><STRONG><FONT face=verdana color=#444f75><EM></EM></FONT></STRONG> </DIV></DIV></DIV><p>
<hr size=1>Fussy? Opinionated? Impossible to please? Perfect. <a href="http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.