[erlang-questions] untyped records
Tue Jul 2 21:46:44 CEST 2013
I'm getting an untyped record from a web form submission. io_lib:format("~p", [MyRecord]) displays:
Now, I know if I define a record myself, I can access fields using the format: Name#type.field
but in this case the type of record is unknown.
MyRecord#struct.desc returns a 'record struct undefined' error at compile time.
Can I access the fields of this record without deconstructing it?
More information about the erlang-questions