Swift At Work…

I’ve been going through my projects for the past few weeks updating them to Swift 2.0. In particular, I released MBGithubOAuthClient a few years back that I needed to rewrite in Swift. To show how awesome and safe Swift is, here are two functions side-by-side:

This is the same function is Swift:

As you can see, there is no reason to type check and write throwException function anymore. Awesome.

Swift At Work…

Leave a Reply

Your email address will not be published. Required fields are marked *