[erlang-questions] record_info in module_info

Joe Armstrong erlang@REDACTED
Tue Mar 6 10:20:01 CET 2007


Hi,

Suggestion for improvement to system.

Compile record  tags  *into* module_info()

Comments
      - record fields are known at compile time
        but can be changed later - the values used should be  recorded in the
        module info

Benefits:
      - can check consistency of records *between* different module
      - can improve ~p to write records correctly
      - can implement record2list and list2record
      - can serialize records
Problems
      - none
Backward compatibility
      - 100%
Difficulty of implementation:
     - None :-)

Do it

/Joe

PS can I document this in the book :-)



More information about the erlang-questions mailing list