{"id":7680,"date":"2013-08-14T15:39:16","date_gmt":"2013-08-14T20:39:16","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7680"},"modified":"2013-08-14T15:39:16","modified_gmt":"2013-08-14T20:39:16","slug":"adding-more-objective-c-literals-to-clang","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/08\/14\/adding-more-objective-c-literals-to-clang\/","title":{"rendered":"Adding More Objective-C Literals to Clang"},"content":{"rendered":"<p><a href=\"http:\/\/www.stuartcarnie.com\/2012\/06\/llvm-clang-hacking-part-3.html\">Stuart Carnie<\/a> in 2012 (via <a href=\"https:\/\/twitter.com\/olebegemann\/status\/366295623382728705\">Ole Begemann<\/a>):<\/p>\n<blockquote cite=\"http:\/\/www.stuartcarnie.com\/2012\/06\/llvm-clang-hacking-part-3.html\"><p>Truthfully, I&rsquo;ve wanted an excuse to hack on Clang and this seemed small enough in scope to achieve in a day. &nbsp;I threw out the idea of NSURL literals being represented by a @@ prefix, so the following line would compile:<\/p><p>NSURL *url = @@\"http:\/\/apple.com\"<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Stuart Carnie in 2012 (via Ole Begemann): Truthfully, I&rsquo;ve wanted an excuse to hack on Clang and this seemed small enough in scope to achieve in a day. &nbsp;I threw out the idea of NSURL literals being represented by a @@ prefix, so the following line would compile:NSURL *url = @@\"http:\/\/apple.com\"<\/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":[230,255,54,71],"class_list":["post-7680","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-clang","tag-compiler","tag-objective-c","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7680","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=7680"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7680\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}