{"id":41,"date":"2005-12-20T23:55:26","date_gmt":"2005-12-20T21:55:26","guid":{"rendered":"http:\/\/ken.friislarsen.net\/blog\/2005\/12\/21\/refactoring-sml-quiz\/"},"modified":"2005-12-20T23:55:26","modified_gmt":"2005-12-20T21:55:26","slug":"refactoring-sml-quiz","status":"publish","type":"post","link":"http:\/\/ken.friislarsen.net\/blog\/2005\/12\/20\/refactoring-sml-quiz\/","title":{"rendered":"Refactoring SML Quiz, Part 1"},"content":{"rendered":"<p>Yesterday, I discussed with some students who are implementing an SML plug-in for eclipse, whether types are necessary for a lambda-lifting refactoring for SML.<\/p>\n<p>So today&#8217;s quiz is simply: Are types necessary for lambda-lifting refactoring in SML? Why\/Why not?<\/p>\n<p>Remember, the refactoring works on valid SML programs, and after the transformation the program should still be valid.<\/p>\n<p>Example:<\/p>\n<pre>\nfun foo x =\n    let fun bar y = (x,y)\n    in bar x end\n<\/pre>\n<p>is transformed\/refactored to<\/p>\n<pre>\nfun bar x y = (x,y)\nfun foo x = bar x x\n<\/pre>\n<p>I&#8217;ll give the answer tomorrow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, I discussed with some students who are implementing an SML plug-in for eclipse, whether types are necessary for a lambda-lifting refactoring for SML. So today&#8217;s quiz is simply: Are types necessary for lambda-lifting refactoring in SML? Why\/Why not? Remember, the refactoring works on valid SML programs, and after the transformation the program should still <a class=\"read-more\" href=\"http:\/\/ken.friislarsen.net\/blog\/2005\/12\/20\/refactoring-sml-quiz\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,7],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-coding","category-general","category-sml"],"_links":{"self":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ken.friislarsen.net\/blog\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}