[erlang-questions] serializing functions

damien morton dmorton@REDACTED
Sun Nov 16 22:21:42 CET 2008

If I take the most basic of functions, e.g. fun()->0 end. and serialize it
using term_to_binary(), it seems that this function is serialized to 650
I guess I was wondering if its better to send a Mod:Fun pair from one node
to another, or to send an actual function() object. Now, I am still not sure
if a function() can be sent over the wire, but a Mod:Fun pair sure is a
whole lot more compact.

What are the normal best practices when handling functions that might be
send over the wire? Prefer Mod:Fun over function()?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081117/20659021/attachment.htm>

More information about the erlang-questions mailing list