{"id":499,"date":"2015-09-08T23:53:28","date_gmt":"2015-09-08T15:53:28","guid":{"rendered":"http:\/\/magicalbits.net\/?p=499"},"modified":"2015-09-08T23:53:28","modified_gmt":"2015-09-08T15:53:28","slug":"alternatives-to-try-swiftlang-erica-sadun","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=499","title":{"rendered":"Alternatives to try? #swiftlang \u2014 Erica Sadun"},"content":{"rendered":"<blockquote><p>The nice thing about try? is that you don\u2019t have to encapsulate calls within a do-catch block. Your result returns as an optional: .Some for success, .None for fail. You can use try?\u00a0in both\u00a0if-let statements, and with guard.<\/p><\/blockquote>\n<p>Swift 2.0 error handling<\/p>\n<p>Source: <em><a href=\"http:\/\/ericasadun.com\/2015\/09\/03\/alternatives-to-try-swiftlang\/\">Alternatives to try? #swiftlang \u2014 Erica Sadun<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The nice thing about try? is that you don\u2019t have to encapsulate calls within a do-catch block. Your result returns as an optional: .Some for success, .None for fail. You can use try?\u00a0in both\u00a0if-let statements, and with guard. Swift 2.0 error handling Source: Alternatives to try? #swiftlang \u2014 Erica Sadun<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=499"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":500,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions\/500"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}