{"id":37014,"date":"2022-09-12T18:22:38","date_gmt":"2022-09-12T22:22:38","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=37014"},"modified":"2022-09-12T18:24:51","modified_gmt":"2022-09-12T22:24:51","slug":"swift-5-7","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/09\/12\/swift-5-7\/","title":{"rendered":"Swift 5.7"},"content":{"rendered":"<p><a href=\"https:\/\/www.swift.org\/blog\/swift-5.7-released\/\">Holly Borla<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.swift.org\/blog\/swift-5.7-released\/\"><p>The Swift 5.7 language and standard library feature a number of improvements:<\/p><ul><li>New shorthand syntax for common boilerplate code, including <code>if let<\/code> statements and multi-statement closure type annotations<\/li><li>Lifted long-standing language limitations to make generic programming more seamless<\/li><li>Enhanced data race safety with new annotations and opt-in diagnostics<\/li><li>Actor isolation in distributed environments<\/li><li>Improved usability of a suite of existing pointer APIs<\/li><li>Brand new language support and APIs for string processing<\/li><\/ul><p>Most of these features were discussed at WWDC22 and were covered in a previous blog post, <a href=\"https:\/\/www.swift.org\/blog\/swift-language-updates-from-wwdc22\/\">Swift language announcements from WWDC22<\/a>. You can also find a complete list of language and standard library Swift Evolution proposals in the <a href=\"https:\/\/www.swift.org\/blog\/swift-5.7-released\/#swift-evolution-appendix\">Swift Evolution Appendix<\/a>.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/swiftrocks.com\/whats-any-understanding-type-erasure-in-swift\">Bruno Rocha<\/a>:<\/p>\n<blockquote cite=\"https:\/\/swiftrocks.com\/whats-any-understanding-type-erasure-in-swift\">\n<p>In this article, we&rsquo;ll explain the concept of type erasure, how it used to be done, what&rsquo;s different in Swift 5.7, and how these changes work under the hood.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/09\/12\/xcode-14\/\">Xcode 14<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/06\/17\/swift-5-7-announced\/\">Swift 5.7 Announced<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/03\/16\/swift-5-6-released\/\">Swift 5.6 Released<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Holly Borla: The Swift 5.7 language and standard library feature a number of improvements:New shorthand syntax for common boilerplate code, including if let statements and multi-statement closure type annotationsLifted long-standing language limitations to make generic programming more seamlessEnhanced data race safety with new annotations and opt-in diagnosticsActor isolation in distributed environmentsImproved usability of a suite [&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":"2022-09-12T22:22:40Z","apple_news_api_id":"26cacb7f-b074-4198-8d02-c417ea45a5f4","apple_news_api_modified_at":"2022-09-12T22:24:53Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAg==","apple_news_api_share_url":"https:\/\/apple.news\/AJsrLf7B0QZiNAsQX6kWl9A","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":[31,2185,46,30,2077,71,2200,901],"class_list":["post-37014","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-16","tag-languagedesign","tag-mac","tag-macos-12","tag-programming","tag-swift-concurrency","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37014","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=37014"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37014\/revisions"}],"predecessor-version":[{"id":37026,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/37014\/revisions\/37026"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=37014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=37014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=37014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}