{"id":5239,"date":"2016-05-09T13:08:00","date_gmt":"2016-05-09T17:08:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=5239"},"modified":"2016-05-09T13:08:25","modified_gmt":"2016-05-09T17:08:25","slug":"multiple-dispatch-in-clos","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=5239","title":{"rendered":"Multiple Dispatch in CLOS"},"content":{"rendered":"<p> Eli Bendersky has an outstanding post on <a href=\"http:\/\/eli.thegreenplace.net\/2016\/a-polyglots-guide-to-multiple-dispatch-part-3\/\">multiple dispatch in Common Lisp<\/a>. It&#8217;s part of a series he&#8217;s doing on multiple dispatch in various languages. <\/p>\n<p> Lisp has always looked at OOP differently from most languages and Lispers consider CLOS a superior way of doing things. One of the ways it shines is in multiple dispatch. With CLOS, multiple dispatch is just a natural outcome of the way dispatch works. <\/p>\n<p> The post is an excellent overview of CLOS in general. If you want to know what OOP looks like in Lisp, be sure to take a look at Bendersky&#8217;s post. In Lisp, OOP is easy and natural and works well in those cases where OOP makes sense. Even if, like me, you generally don&#8217;t care for OOP, you may find that CLOS will change your mind. On the other hand, as Paul Graham says, Lisp is the language where OOP is least necessary. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eli Bendersky has an outstanding post on multiple dispatch in Common Lisp. It&#8217;s part of a series he&#8217;s doing on multiple dispatch in various languages. Lisp has always looked at OOP differently from most languages and Lispers consider CLOS a &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=5239\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[39,14],"class_list":["post-5239","post","type-post","status-publish","format-standard","hentry","category-programming","tag-common-lisp","tag-lisp"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5239"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions"}],"predecessor-version":[{"id":5240,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5239\/revisions\/5240"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}