{"id":1390,"date":"2011-03-06T18:47:13","date_gmt":"2011-03-07T02:47:13","guid":{"rendered":"http:\/\/boost-spirit.com\/home\/?p=1390"},"modified":"2011-03-06T19:02:18","modified_gmt":"2011-03-07T03:02:18","slug":"attributes-functional-vs-side-effects","status":"publish","type":"post","link":"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/","title":{"rendered":"Attributes: Functional vs. Side-effects"},"content":{"rendered":"<p>We (the spirit developers) are obviously advocates of FP (functional programming). We use as much FP as we can in the design of Spirit. Spirit is essentially a<a href=\"http:\/\/en.wikipedia.org\/wiki\/Parser_combinator\"> parser-combinator<\/a> library in the likes of Haskell parser libraries such as <a href=\"http:\/\/www.haskell.org\/haskellwiki\/Parsec\">Parsec<\/a>. The similarities end however in how we deal with imperative constructs that are taboos in the FP world.<\/p>\n<p>Read more here: <a href=\"http:\/\/boost-spirit.com\/home\/attributes-functional-vs-side-effects\/\">Attributes: Functional vs Side-effects<\/a><\/p>\n<div id=\"_mcePaste\" class=\"mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">\n<pre>Frank Dellaert<\/pre>\n<\/div>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>Share<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-1390\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-1390\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-1390\" class=\"share-pinterest sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" ><span>Pinterest<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-1390\" class=\"share-linkedin sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" ><span>Reddit<\/span><\/a><\/li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" ><span>Tumblr<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>We (the spirit developers) are obviously advocates of FP (functional programming). We use as much FP as we can in the design of Spirit. Spirit is essentially a parser-combinator library in the likes of Haskell parser libraries such as Parsec. The similarities end however in how we deal with imperative constructs that are taboos in [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>Share<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-1390\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-1390\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-1390\" class=\"share-pinterest sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" ><span>Pinterest<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-1390\" class=\"share-linkedin sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" ><span>Reddit<\/span><\/a><\/li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon\" href=\"https:\/\/boost-spirit.com\/home\/2011\/03\/06\/attributes-functional-vs-side-effects\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" ><span>Tumblr<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[28],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pIHdZ-mq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/posts\/1390"}],"collection":[{"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/comments?post=1390"}],"version-history":[{"count":7,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/posts\/1390\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/posts\/1390\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/media?parent=1390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/categories?post=1390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/tags?post=1390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}