Closed ferranpujolcamins closed 3 years ago
Make Exists conform to CustomStringConvertible and CustomDebugStringConvertible.
Exists
CustomStringConvertible
CustomDebugStringConvertible
Exists might not always be truly CustomStringConvertible, because the inner type might not conform to CustomStringConvertible.
When Exists holds a value of an inner type that is not CustomStringConvertible it will use \(fa) as description.
\(fa)
For CustomDebugStringConvertible the behavior is the same.
Goal
Make
Exists
conform toCustomStringConvertible
andCustomDebugStringConvertible
.Implementation details
Exists
might not always be trulyCustomStringConvertible
, because the inner type might not conform toCustomStringConvertible
.When
Exists
holds a value of an inner type that is notCustomStringConvertible
it will use\(fa)
as description.For
CustomDebugStringConvertible
the behavior is the same.