[erlang-questions] clarify: variable as function name

Christian S chsu79@REDACTED
Mon Dec 10 14:24:46 CET 2007

On Dec 10, 2007 1:47 PM, Andreas Hillqvist <andreas.hillqvist@REDACTED> wrote:
> I am missing the ability to send Variables to "fun [xxx:]yyy/z".
> Something like:
>     F = fun ExprF/0.
> And:
>     F = fun ExprM:ExprF/0.

If you look at the document in the source that describes the external
format you will see that this kind of fun (that just reference the fun to
call by its name) already exist.

If funs are bound to the offset and checksum into a module or if it is
just referencing
the names exposed by the external api has huge impact for code-switching.
It feels like this is the area where you just have to be very
experienced to know
how and when to use funs without painting youself into a corner about
how troublesome
code switching will be.

More information about the erlang-questions mailing list