typed_struct
typed_struct copied to clipboard
Extension for records
Could you extend this library for defining Record's? E.g. presently:
Record.defrecord(:conn, [
name: nil,
pid: nil,
mon: nil
])
@type conn :: record(:conn, [
name: atom,
pid: pid,
mon: reference
])
Indeed, for communicating with other BEAM languages, or storing in Mnesia, this would be useful.