{"id":13989,"date":"2016-03-28T12:02:03","date_gmt":"2016-03-28T16:02:03","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=13989"},"modified":"2016-03-28T12:02:03","modified_gmt":"2016-03-28T16:02:03","slug":"swift-colon-care","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/03\/28\/swift-colon-care\/","title":{"rendered":"Swift Colon Care"},"content":{"rendered":"<p><a href=\"http:\/\/ericasadun.com\/2016\/03\/25\/swift-colon-care-high-fiber-usage\/\">Erica Sadun<\/a>:<\/p>\n<blockquote cite=\"http:\/\/ericasadun.com\/2016\/03\/25\/swift-colon-care-high-fiber-usage\/\">\n<p>Since I started programming in Swift, I moved to the &ldquo;<a href=\"http:\/\/mikeash.com\/\">Ash Rule<\/a>&rdquo; of left-hugging colons in all uses except ternary, up to and including dictionary references,  protocols, etc.<\/p>\n<p>[&#8230;]<\/p>\n<p>Dave Abrahams <a href=\"http:\/\/article.gmane.org\/gmane.comp.lang.swift.user\/1540\">clarified StdLib style<\/a> on the Swift Evolution list today:<\/p>\n<ul>\n<li>Full monty spaces for declarations and extensions<\/li>\n<li>Left magnetism for providing values<\/li><\/ul>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Erica Sadun: Since I started programming in Swift, I moved to the &ldquo;Ash Rule&rdquo; of left-hugging colons in all uses except ternary, up to and including dictionary references, protocols, etc. [&#8230;] Dave Abrahams clarified StdLib style on the Swift Evolution list today: Full monty spaces for declarations and extensions Left magnetism for providing values<\/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":[27,71,901],"class_list":["post-13989","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-craft","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13989","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=13989"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13989\/revisions"}],"predecessor-version":[{"id":13990,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13989\/revisions\/13990"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=13989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=13989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=13989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}