[erlang-questions] Avoiding case nesting

mayamatakeshi mayamatakeshi@REDACTED
Mon Sep 28 15:56:12 CEST 2009

On Mon, Sep 28, 2009 at 10:31 PM, Hynek Vychodil

> If you are concerned about the runtime cost you should think about some
> sort of compiling. You can use parse transform to made it in compile time if
> it is reasonable for you. It means you have fixed set of prefixes but you
> want easy configuration. But it seems for me almost same as just one module
> as some kind of "configuration" file. Another choice is on fly compilation
> when you need change it programmatically in run time. When you realize how
> big advantage hot code swapping in Erlang is, you can found it most
> promising.

Oh. Even having read about hot code swapping and on the fly compilation, as
a newbie I was unable to connect them with a simple thing like streamlining
Yes, now I can see I can compile a module on the fly and the problem with
function pattern matching goes away as what before was a variable (loaded
using application:get_env) now becomes a literal value. Thanks a lot.

More information about the erlang-questions mailing list