mirror of
https://github.com/apple/swift-certificates
synced 2026-11-29 05:04:21 +00:00
### Motivation `debugDescription` name and documentation is confusing and should be changed but it is today expected to be suitable to be used as part of a structured display e.g. to be printed as part of `struct` or `enum` with associated values. Therefore it should have no unpaired parentheses, no unescaped quotes and no top-level commas. ### Modifications - let `debugDescription` simply contain the same contents as `description` but suitable for structural display as described above. - add a new `multilineDescription` which contains the same contents as the `description` but breaded down on multiple lines for better readability.