[erlang-questions] case or clause

Sten Kvamme sten@REDACTED
Thu Jan 8 22:01:06 CET 2009

I got the question the other day about erlang best practize, to use case
or clause? (don't know if clasuse is the correct erlang name, but you
know -- in a Prolog-way).

Is erlang better/faster/leaner if I implement several "prolog" clauses
as a case in a clause, or is it better/faster/leaner to reduce the use
of case to situations when local variables in a clause is used in the
case statement?

Or is it just a matter of 'taste'?

Sten Kvamme

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Detta ?r en digitalt signerad	meddelandedel
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090108/f8405a08/attachment.bin>

More information about the erlang-questions mailing list