Accidentally Introducing Side Effects into Purely Functional Code

It’s easy to taint even purely functional languages by reintroducing side-effects. Simply have each function take an additional parameter representing the global state of the world–a tree of key/value pairs, for example–and have each function return a new state of the world. This is not news.

via http://ift.tt/snEPpJ

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s