Login
From:
Ole Begemann
(Uncensored)
subscribe
Making illegal states unrepresentable – Ole Begemann
https://oleb.net/blog/2018/03/making-illegal-states-unrepresentable/
links
backlinks
Roast topics
Find topics
Find it!
One of the biggest advantages of a strong type system is that carefully chosen types can make illegal states unrepresentable in your programs. Many Cocoa APIs don’t take full advantage of this because they aren’t optimized for Swift.