Skip to content

API reference

The Erlang term model.

Every term that can travel over the distribution protocol has a class here, so a decoder can hand back a value that can be pattern matched and a printer can render it back to Erlang syntax. ErlangOpaque carries the encoded bytes of the few types that cannot be modelled as ordinary values (funs, exports and anything a future OTP invents) so decoding never loses data.

All of them are value classes: == compares contents, hash() agrees with ==, and instances can be used as Map and Set keys.

Public Types