Enums as configuration: the anti-patternOne of the most common patterns I see in software design with Objective-C (and sometimes Swift), is the use of enumeration types (enum) as configurations for...#swift#solid-principles#jesse-squires#enumeration#structs·jessesquires.com·May 2, 2019Enums as configuration: the anti-pattern
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.”