{"id":12379,"date":"2015-09-24T16:51:29","date_gmt":"2015-09-24T20:51:29","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12379"},"modified":"2015-10-14T15:51:18","modified_gmt":"2015-10-14T19:51:18","slug":"swift-2-1","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/09\/24\/swift-2-1\/","title":{"rendered":"Swift 2.1"},"content":{"rendered":"<p><a href=\"http:\/\/www.russbishop.net\/swift-2-1\">Russ Bishop<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=10274848\">comments<\/a>):<\/p>\r\n<blockquote cite=\"http:\/\/www.russbishop.net\/swift-2-1\"><p>If you thought Apple was slowing down with Swift, <em>think again<\/em>. Xcode 7.1 Beta 2 includes Swift 2.1. As always you can check the <a href=\"http:\/\/adcdownload.apple.com\/Developer_Tools\/Xcode_7.1_beta_2\/Xcode_7.1_beta_2_Release_Notes.pdf\">release notes<\/a> for yourself because I don&rsquo;t necessarily address everything here.<\/p><p>[&#8230;]<\/p><p>If only <code>private<\/code> things are modified in a file then it does not trigger recompilation of all files that depend on it. In some cases this can have a huge performance benefit<\/p><p>[&#8230;]<\/p><p>Function\/closure types now have <a href=\"https:\/\/en.wikipedia.org\/wiki\/Covariance_and_contravariance_(computer_science)\">covariance and contravariance<\/a>.<\/p><\/blockquote>\r\n<p>Update (2015-10-14): <a href=\"http:\/\/www.russbishop.net\/swift-2-1-beta-3\">Russ Bishop<\/a> covers Swift 2.1 Beta 3.<\/p>","protected":false},"excerpt":{"rendered":"<p>Russ Bishop (comments): If you thought Apple was slowing down with Swift, think again. Xcode 7.1 Beta 2 includes Swift 2.1. As always you can check the release notes for yourself because I don&rsquo;t necessarily address everything here.[&#8230;]If only private things are modified in a file then it does not trigger recompilation of all files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[46,71,901],"class_list":["post-12379","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-languagedesign","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12379"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12379\/revisions"}],"predecessor-version":[{"id":12555,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12379\/revisions\/12555"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}