Swift Enums Are “sum” Types. That Makes Them Very Interesting

Algebraic types… seems like the kind of math-y work Haskell programmers
would use. But in reality you don’t need to know type theory or have a
PhD in mathematics to understand them. Algebraic types arent new types. They are simply a new way of thinking
ab… Read more

Similar

Swift.Unmanaged

In order to work with C APIs, we sometimes need to convert Swift object references to and from raw pointers. Swift's Unmanaged struct is the standard API for handling this. Today, I'd like to talk about what it does and how to use it. (more…)

Read more »