[erlang-questions] erlang improvement - objective c (or smalltalk) syntax

Richard O'Keefe <>
Fri Jun 5 08:35:06 CEST 2009


> My first thought when I saw this was that the abstract form already  
> contains the variable names,

What variable names?

	f(X, Y, M) when M < 0 -> ...
	f(P, Q, P) when P > 0 -> ...
	f(U, V, Z) -> ...

(M for Minus, P for Plus, Z for Zero.)
What is _the_ name of each argument?

	push({Front,Back}, X) -> {Front,[X|Back]}.

Where does it say that the first argument of push is a Queue and
the second argument is an Item?  OK, we could rename X to Item,
but {Front,Back} doesn't _have_ a name in the code.



More information about the erlang-questions mailing list