{"id":6845,"date":"2013-01-22T21:30:03","date_gmt":"2013-01-23T02:30:03","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6845"},"modified":"2016-05-08T23:37:40","modified_gmt":"2016-05-09T03:37:40","slug":"dylan-programming-guide","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/01\/22\/dylan-programming-guide\/","title":{"rendered":"Dylan Programming Guide"},"content":{"rendered":"<p><a href=\"http:\/\/opendylan.org\/news\/2013\/01\/21\/dylan-programming-guide.html\">Open Dylan<\/a> (via <a href=\"http:\/\/news.ycombinator.com\/item?id=5091549\">Hacker News<\/a>):<\/p>\r\n<blockquote cite=\"http:\/\/opendylan.org\/news\/2013\/01\/21\/dylan-programming-guide.html\"><p>The <a href=\"http:\/\/opendylan.org\/books\/dpg\/\">Dylan Programming Guide<\/a> has been updated to\r\nuse our new documentation format. As a result it is\r\nnow available in <a href=\"http:\/\/opendylan.org\/books\/dpg\/DylanProgramming.pdf\">PDF<\/a> and <a href=\"http:\/\/opendylan.org\/books\/dpg\/DylanProgramming.epub\">ePub<\/a> formats as well\r\nas much improved HTML.<\/p><\/blockquote>\r\n<p>There were a lot of good ideas in Apple&rsquo;s Dylan language. <a href=\"http:\/\/opendylan.org\/books\/dpg\/macros.html\">For example<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/opendylan.org\/books\/dpg\/macros.html\"><p>C and C++ macros are text substitutions, performed by a preprocessor. The preprocessor has no understanding of the language; it simply splices together text fragments to create replacement phrases.<\/p>\r\n<p>Dylan macros are written in terms of Dylan language elements; the macros choose their transformation by pattern matching, and they substitute program fragments.<\/p>\r\n<p>Language-based macros are more powerful than &mdash; and avoid a number of common pitfalls of &mdash; text-substitution macros.<\/p><\/blockquote>\r\n<p>Update (2013-02-17): The <a href=\"http:\/\/news.ycombinator.com\/item?id=5218227\">Hacker News thread<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Open Dylan (via Hacker News): The Dylan Programming Guide has been updated to use our new documentation format. As a result it is now available in PDF and ePub formats as well as much improved HTML. There were a lot of good ideas in Apple&rsquo;s Dylan language. For example: C and C++ macros are text [&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":[63,296,46,941,71],"class_list":["post-6845","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-book","tag-dylan","tag-languagedesign","tag-macros","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6845","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=6845"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6845\/revisions"}],"predecessor-version":[{"id":14440,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6845\/revisions\/14440"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}