bow-swift / bow

🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
https://bow-swift.io
Other
643 stars 32 forks source link

Make Exists conform to CustomStringConvertible #650

Closed ferranpujolcamins closed 3 years ago

ferranpujolcamins commented 3 years ago

Goal

Make Exists conform to CustomStringConvertible and CustomDebugStringConvertible.

Implementation details

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.

For CustomDebugStringConvertible the behavior is the same.