
Tech Talk: Total Swift Programming
CoRecursive: Coding Stories
00:00
Is Swift Enforcing Totality?
Swift has an auto outo complete for switching over algebradetypes. So if you write your own algebra thiatype it will automatically generate a switch case to do case analysis on it and not forget any case. Which is, interestingly enough, better than the default gh c option when youre using haskall. It really helps tototo have a compiler that can tell you whenever you're forgetting something that you really shouldn't.
Transcript
Play full episode