“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.”