When Not to Use an EnumIf you’re not switching over an enum, then you’re using it for its properties. We have a better tool for value types with properties: structs.#matt-diephouse#enumeration#structs#analytics·matt.diephouse.com·Apr 7, 2019When Not to Use an Enum
“Enums are for switching. If you aren’t going to switch over a value—outside of the type—then use a struct.”“Enums are for switching. If you aren’t going to switch over a value—outside of the type—then use a struct.”#enumeration#matt-diephouse#swift#structs#type-systems#analytics·mobile.twitter.com·Apr 7, 2019“Enums are for switching. If you aren’t going to switch over a value—outside of the type—then use a struct.”