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

English Edit question
Ikarus Scheme Edit question
No assignee Edit question
Solved by:
Abdulaziz Ghuloum
Last query:
Last reply:
Revision history for this message
Best Abdulaziz Ghuloum (aghuloum) said :

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 :

Thanks Abdulaziz Ghuloum, that solved my question.

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

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