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 4 Weak References

Soon after Swift was initially open sourced, I wrote an article about how weak references are implemented. Time moves on and things change, and the implementation is different from what it once was. Today I'm going to talk about the current implementation... (more…)

Read more »