Structs (was RE: Record selectors)

Shawn Pearce <>
Thu Feb 13 07:39:20 CET 2003

Chris Pressey <> wrote:
> In fact, I think structs might have an advantage of being defined with
> funs.  Erlang grew up with callback modules, but consider a 'lambda
> module' which is just a dictionary of funs.  Instead of being named
> functions, they have keys that are each an atom.  The advantage over a
> regular module is that the lambda module can have a higher order -
> constants can be curried into the funs.

Great idea, but does code reloading work with already
existing funs?  :-)


More information about the erlang-questions mailing list