[erlang-questions] Which choice is better? Function or Case

Ivan Uemlianin ivan@REDACTED
Thu Mar 7 10:31:37 CET 2013

Clarity is more important imho. Worry about making it faster only if it ever seems too slow (i.e., on testing, and only "optimise" the parts you need to).


festina lente

On 7 Mar 2013, at 09:11, "饕餮" <249505968@REDACTED> wrote:

> I wonder if Function call is better than Case when both of they can implement the target I want?
> It seems like  write a function instead of case could make the code more clear .
> But which one is fast when it running? 
> I intend to change the case to function to make the code more clear. Is this valuable?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130307/cb10c317/attachment.htm>

More information about the erlang-questions mailing list