[erlang-questions] serializing functions

mats cronqvist <>
Wed Nov 19 23:45:23 CET 2008


Matthias Lang <> writes:

> On Monday, November 17, damien morton wrote:
>> 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
>> bytes.
>
> I'd guess you concluded that after trying it in the shell, not a
> module. IIRC, funs made in the shell are special, they carry around
> a complete (?) representation of the fun.

  i can confirm this.



More information about the erlang-questions mailing list