Printing of opaque records

Asked by Derick Eddington

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Derick Eddington (derick-eddington) said :
#2

Thanks Abdulaziz Ghuloum, that solved my question.

Revision history for this message
Derick Eddington (derick-eddington) said :
#3

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