{"id":9201,"date":"2014-07-22T13:35:27","date_gmt":"2014-07-22T17:35:27","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=9201"},"modified":"2014-07-24T10:11:43","modified_gmt":"2014-07-24T14:11:43","slug":"changes-to-swift-in-beta-4","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/07\/22\/changes-to-swift-in-beta-4\/","title":{"rendered":"Changes to Swift in Beta 4"},"content":{"rendered":"<p><a href=\"http:\/\/airspeedvelocity.net\/2014\/07\/21\/changes-in-the-swift-standard-library-in-beta-4\/\">Airspeed Velocity<\/a>:<\/p>\n<blockquote cite=\"http:\/\/airspeedvelocity.net\/2014\/07\/21\/changes-in-the-swift-standard-library-in-beta-4\/\"><p>Other than access control, no big changes to the language with Beta 4, unlike <a href=\"http:\/\/airspeedvelocity.net\/2014\/07\/08\/changes-to-the-swift-standard-library-in-beta-3\/\">with Beta 3<\/a>.  But still plenty of changes to the standard library.<\/p><\/blockquote>\n<p><a href=\"http:\/\/ericasadun.com\/2014\/07\/21\/swift-beta-4-very-pretty\/\">Erika Sadun<\/a>:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2014\/07\/21\/swift-beta-4-very-pretty\/\"><p>RIP CString. It&rsquo;s now all ConstUnSafePointer&lt;Int8&gt; all the time. I still can&rsquo;t get most of my straight C stuff ported but it looks like things are getting closer.<\/p><\/blockquote>\n<p><a href=\"http:\/\/inessential.com\/2014\/07\/21\/swift_and_internal_access_as_default\">Brent Simmons<\/a>:<\/p>\n<blockquote cite=\"http:\/\/inessential.com\/2014\/07\/21\/swift_and_internal_access_as_default\"><p>So if internal access is the default, and I don&rsquo;t want to use it (or want to use it exceedingly sparingly), what do I do?<\/p><\/blockquote>\n<p>Update (2014-07-24): <a href=\"https:\/\/developer.apple.com\/swift\/blog\/?id=5\">Apple<\/a>:<\/p>\n<blockquote cite=\"https:\/\/developer.apple.com\/swift\/blog\/?id=5\"><p>In Xcode 6 beta 4, Swift adds support for access control. This gives you complete control over what part of the code is accessible within a single file, available across your project, or made public as API for anyone that imports your framework.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Airspeed Velocity: Other than access control, no big changes to the language with Beta 4, unlike with Beta 3. But still plenty of changes to the standard library. Erika Sadun: RIP CString. It&rsquo;s now all ConstUnSafePointer&lt;Int8&gt; all the time. I still can&rsquo;t get most of my straight C stuff ported but it looks like things [&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-9201","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\/9201","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=9201"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/9201\/revisions"}],"predecessor-version":[{"id":9224,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/9201\/revisions\/9224"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=9201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=9201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=9201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}