Tuesday, September 30, 2008

Side Effects and Functional Programming

Side Effects and Functional Programming - Matthew Podwysocki
One of my first posts at CodeBetter was in regards to side effects and how, when unmanaged, can be truly evil. Today, I want to revisit that topic briefly in regards to functional programming and managing side effects. When I was out in Redmond a couple of months ago, I had the opportunity to sit down with Erik Meijer to discuss functional programming among other topics. In there, we discussed a number of issues around managing side effects and state in your code, and how both C# and F# don't intrinsically support such a concept. Languages like Haskell, of course do with IO monads and other such monadic structures. Whether languages such as F# and Erlang are not pure functional programming languages is another matter, due to the fact that you don't have to declare when you are side effecting (reading a database, writing to console, spawning a process, etc).

1 comment:

Mindiam22 said...

Web Design and Development Sydney Melbourne Brisbane - Providing SEO, Magento, Joomla 1.5 1.7 2.5 Opensource Business Solutions Australia

joomla web design Sydney