Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftphantom typesSingle-choice MCQ

Why are empty `enum` declarations (e.g. `enum Validated {}`) often preferred over empty `struct`s as phantom-type tags?

enum Raw {} enum Validated {} struct Form<State> { let fields: [String: String] }