[swift-evolution] Idea: Use <Codable> for default implementation of <CustomDebugStringConvertible>?

William Shipley wjs at mac.com
Wed Jul 12 17:34:19 CDT 2017


Would it be possible for items that implement <Codable> to automatically get <CustomDebugStringConvertible> with a default implementation that just calls encode into a JSON blob and then dumps it to the screen?

Any drawbacks to doing this?

-Wil


More information about the swift-evolution mailing list