{"id":119,"date":"2009-01-26T17:31:13","date_gmt":"2009-01-26T21:31:13","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=119"},"modified":"2009-01-26T17:31:13","modified_gmt":"2009-01-26T21:31:13","slug":"understanding-lisp-better","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2009\/01\/26\/understanding-lisp-better\/","title":{"rendered":"Understanding Lisp Better"},"content":{"rendered":"<p>This is the result of a light-bulb going on when reading an info file that introduces emacs lisp. I&#8217;m not sure this is legal in other lisps, and it goes against <em>el camino<\/em> of lisp.  But it demonstrates what became clear to me&#8230;<\/p>\n<p><code>(defun inc (x)<br \/>\n  (set x (+ 1 (eval x))))  ;note the intentional use of set, not setq<\/p>\n<p>(setq myvar 5)<\/p>\n<p>(inc 'myvar)<br \/>\n(inc 'myvar)<br \/>\n(inc 'myvar)<\/p>\n<p>(message \"myvar's value: %s\" myvar)<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the result of a light-bulb going on when reading an info file that introduces emacs lisp. I&#8217;m not sure this is legal in other lisps, and it goes against el camino of lisp. But it demonstrates what became clear to me&#8230; (defun inc (x) (set x (+ 1 (eval x)))) ;note the intentional [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,18],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-lisp","category-programming"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}