{"id":13632,"date":"2016-02-19T13:58:13","date_gmt":"2016-02-19T18:58:13","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=13632"},"modified":"2016-02-19T13:58:13","modified_gmt":"2016-02-19T18:58:13","slug":"swift-protocols-with-associated-types","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/02\/19\/swift-protocols-with-associated-types\/","title":{"rendered":"Swift Protocols With Associated Types"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/alexisgallagher\">Alexis Gallagher<\/a> gave a great <a href=\"https:\/\/www.youtube.com\/watch?v=XWoNjiSPqI8\">conference talk<\/a> about Swift protocols with associated types, which he calls PATs. They are very weird compared with regular protocols in Swift or Objective-C, and he explains why that is and why they don&rsquo;t use generic protocol syntax.<\/p>\n\n<p>See also: <a href=\"http:\/\/www.osl.iu.edu\/publications\/prints\/2005\/garcia05:_extended_comparing05.pdf\">An Extended Comparative Study of Language Support for Generic Programming<\/a> (PDF).<\/p>\n\n<p>Previously: <a href=\"http:\/\/mjtsai.com\/blog\/2015\/09\/01\/swift-protocols\/\">Swift Protocols<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Alexis Gallagher gave a great conference talk about Swift protocols with associated types, which he calls PATs. They are very weird compared with regular protocols in Swift or Objective-C, and he explains why that is and why they don&rsquo;t use generic protocol syntax. See also: An Extended Comparative Study of Language Support for Generic Programming [&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":[738,46,71,901],"class_list":["post-13632","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-conference","tag-languagedesign","tag-programming","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13632","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=13632"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13632\/revisions"}],"predecessor-version":[{"id":13633,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/13632\/revisions\/13633"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=13632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=13632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=13632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}