Feature Request: CustomDumpReflectable without a Mirror #36
Replies: 1 comment 5 replies
-
Hey @rjchatfield! I'm going to convert this to a discussion, since we try to keep the issues area focussed on bugs with the library. I believe there are several existing ways of achieving what you want here. The two that stick out the most:
If you come up with a reasonable, repeatable way of handling the problem, please do share in the discussion! And if this is something that comes up enough, we can share the solution or include the solution in the library proper. For some reason, we haven't encountered this issue ourselves in the libraries and apps we use CustomDump in. We already consider the three existing protocols to be a lot, so ideally we'd want to avoid introducing a fourth one to the library if we can. |
Beta Was this translation helpful? Give feedback.
-
I really appreciate the pretty printing of
customDump()
. However I'm having some challenges with usingMirror
in some cases and would like to suggest a new API that prints like adisplayStyle: .struct
but allows me to explicitly override thetypeName
.(Please ignore the protocol naming. I'll trust you guys to come up with something suitable)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions