{"id":9031,"date":"2014-06-23T16:30:13","date_gmt":"2014-06-23T20:30:13","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=9031"},"modified":"2014-06-23T16:30:13","modified_gmt":"2014-06-23T20:30:13","slug":"immutable-swift","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/06\/23\/immutable-swift\/","title":{"rendered":"Immutable Swift"},"content":{"rendered":"<p><a href=\"http:\/\/nomothetis.svbtle.com\/immutable-swift\">Alexandros Salazar<\/a>:<\/p>\n<blockquote cite=\"http:\/\/nomothetis.svbtle.com\/immutable-swift\">\n<p>I am fascinated by the possibilities Swift <em>opens up:<\/em> we are now able to try, in an idiomatic way, constructs that would have been strange and out-of-place in Objective-C. I think they&rsquo;re exciting, and definitely worth exploring.<\/p>\n<p>[&#8230;]<\/p>\n<p>So there we have it. A very simple Cocoa app, but put together very differently from a normal Objective-C app. Even if you&rsquo;ve used Model-View-ViewModel before in Cocoa, odds are you&rsquo;ve never tried to use completely immutable data structures quite like this. I know I gave up very quickly the few times I considered it, because ensuring immutability actually increased the mental overhead of writing the Objective-C code.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Alexandros Salazar: I am fascinated by the possibilities Swift opens up: we are now able to try, in an idiomatic way, constructs that would have been strange and out-of-place in Objective-C. I think they&rsquo;re exciting, and definitely worth exploring. [&#8230;] So there we have it. A very simple Cocoa app, but put together very differently [&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":[74,71,901],"class_list":["post-9031","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-opensource","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/9031","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=9031"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/9031\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=9031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=9031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=9031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}