[erlang-questions] case statements really required??
Sean Cribbs
seancribbs@REDACTED
Fri Dec 4 14:21:16 CET 2009
kiran wrote:
> hi,
> is it good to use case statements in functional language.. according
> to me .. pattern matching-functions could do the task.
> any commnets??
>
Often I turn case statements into multiple function clauses, as you
suggest; however, sometimes it's more expedient to use a case
statement. It's a matter of style and pragmatism, and I like having
both available.
Sean
More information about the erlang-questions
mailing list