Robert Virding
Member since Feb 8, 2011
- Profile: /members/7752-robert-virding.htm
- Comments: 3
Recent Blog Comments By Robert Virding
-
Seven Languages In Seven Weeks: Erlang - Day 1
Posted on Dec 19, 2013 at 11:42 AM
Erlang has very little syntactic sugar which I think is a Good Thing. The syntax is very consistent, especially in its use of ',' and ';' which seem to cause a lot of problems. 'if' does have its uses and could not comfortably be replaced with case or functions, although because of its definition it... read more »
-
Seven Languages In Seven Weeks: Erlang - Day 1
Posted on May 4, 2013 at 1:58 AM
@Tom, Some comments on your comment: - io:format takes a format string that works in a similar fashion to C's printf so you could do it as io:format("~w~n", [N]) - You should really only return booleans, true/false, when you actually mean a boolean value. A common value to return to s... read more »
-
Seven Languages In Seven Weeks: Erlang - Day 1
Posted on Feb 8, 2011 at 10:46 AM
About the syntax: the easiest way, and also the correct way, is not to view ',' and ';' as terminators (as in C/Java) but as separators . The ';' can only occur between clauses (function, case, if, and receive) and means that either the clause before the ';' is chosen or a clause occurring afte... read more »