[erlang-questions] Which choice is better? Function or Case
Thu Mar 7 10:26:34 CET 2013
Another point in favor of functions is that they can be traced with
If you worry about code speed you can first make a simple,
understandable, solution, then time/profile it.
On Thu, 2013-03-07 at 17:11 +0800, 饕餮 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
More information about the erlang-questions