[erlang-questions] Which choice is better? Function or Case
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).
On 7 Mar 2013, at 09:11, "饕餮" <> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions