Fresh Swift
  • About
  • Tags
Fresh Swift

Swift enums are sum types, and that makes them very interesting

Mislav Javor with an explanation of the Algebraic product and sum types in terms of Swift struct and enum types. He demonstrates that enums being sum types makes them particularly interesting. Simple examples mean no PhD in mathematics is required!

Posted on April 23, 2017

#enums 
  • ← Previous Post
  • Next Post →

 •  2019  •  Fresh Swift

Hugo v0.20.7 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo