Printing of opaque records

Asked by Derick Eddington on 2007-12-02

Should opaque records have their type name and contents printed? Since opaque records aren't supposed to reveal their RTD (which prevents inspection) and they can't even be determined with record?, and I'd like to be able to rely on opaque records to enforce security of sensitive information encapsulation, I favor that opaque records print as only #<record>

Question information

Language:
English Edit question
Status:
Solved
For:
Ikarus Scheme Edit question
Assignee:
No assignee Edit question
Solved by:
Abdulaziz Ghuloum
Solved:
2007-12-02
Last query:
2007-12-02
Last reply:
2007-12-02
Best Abdulaziz Ghuloum (aghuloum) said : #1

Maybe they should be printed as #<unknown>. Currently, R6RS records are printed using the same code that handles the lower-level structs.
Will fix.

Thanks Abdulaziz Ghuloum, that solved my question.

#<unknown> does seems more consistent with record? returning #f for opaques.