Comment made by: vemv
Hi Mike,
thanks so much for clarifying and taking care of this one! Appreciated.
??^:export works on (and only on) Vars.??
This would be an excelent piece of knowledge to include in the documentation IMO. Why not tell the whole story in a single place?
The original concern that made me open this issue was logging/debugging.
Say an application has a series of singleton defrecord instances, as part of a 'component' system (Sierra style).
Then, for logging, I might be tempted to {{(js/console.log (type the-instance))}}, so I can identify e.g. a buggy component.
But without language support, one is unable to get that (or something similar) to work without lots of boilerplate, or perhaps a hacky macro.
Would it be possible to make {{(type some-instance-of-a-defrecord-or-deftype)}} print the original name under advanced compilation?