Swift 1.2, or The End of Egypt

Swift 1.2 is out! Well, sorta-out — it’s bundled with the latest Xcode beta, and I’m still a little hesitant to jump on the beta Xcode train having been burnt one time too many. Plus, I’m not sure I like the idea of having my dev tools be ‘beta’, especially in the oh-wow-it-really-is-beta way that Apple uses the term.

If you want a highlight of changes in 1.2, jump over to NSHipster — but the most exciting change for me is a slight syntactic sugar around optional binding that turns the let-pyramid of doom:



into a sensible, manageable one-liner:


Leave a Reply

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

Latest Posts

  • Guard! Guard!

    Swift 2 introduced the guard keyword, a handy bit of syntactic sugar with semantics similar…

  • UIResponder and Swift 2.0

    I was revisiting an older Swift 1.0 project this morning, and discovered that, in the…

  • The App Classifieds

    I’ve taken a break from app development to launch something different: a classified listings site…