pointfreeco / swift-case-paths

🧰 Case paths extends the key path hierarchy to enum cases.
https://www.pointfree.co/collections/enums-and-structs/case-paths
MIT License
904 stars 105 forks source link

Use Point-Free syntax to avoid uninhabited warnings #184

Closed stephencelis closed 1 month ago

stephencelis commented 1 month ago

These closures are effectively sendable since they're "thin", but the initializer breaks the point-free style, and introduces unfortunate warnings when dealing with uninhabited enums.