mdiep/diff-values.swiftDiff values with Codable, CaseIterable, and KeyPaths · GitHub#matt-diephouse#diffing·gist.github.com·Feb 4, 2020mdiep/diff-values.swift
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.”