Name: Anonymous 2009-06-30 20:33
Well now. I am perusing an Erlang tutorial, and being used to Haskell (I am an academic) its erratic and disturbing use of scope is quite fascinating. It also worries me that, like Python, it makes only one (semantic) distinction between lists and tuples: You do not have to know the length of the former when trying to pattern match against it. Ironically, because the language is dynamically typed, I may still write a function as follows:
By the by, comrades, I pronounce it like "air lang." Do you say "ur lang?"
bafflement({Car, Cdr}) ->
two;
bafflement({Cadr, Eval, Apply}) ->
three;
bafflement({Car, Cdr, Eval, Apply}) ->
four;
bafflement(Etc) ->
a_lot.By the by, comrades, I pronounce it like "air lang." Do you say "ur lang?"