Login
Roast topics
Find topics
Find it!
From:
Swift by Sundell
(Uncensored)
subscribe
Avoiding problematic cases when using Swift enums | Swift by Sundell
https://www.swiftbysundell.com/articles/avoiding-problematic-enum-cases-in-swift
links
backlinks
Roast topics
Find topics
Roast it!
Swift’s enums are awesome, but they’re not always the best choice for modeling a given piece of data. Let’s explore why that is, and what other tools that can be good to keep in mind in order to avoid certain problematic enum cases.