[Haskell-beginners] Config data

Andrew Bernard andrew.bernard at gmail.com
Sat Sep 19 01:32:02 UTC 2015


Greetings,

Better style in functional programming is to be as stateless as possible. Reverting to using global state, your life would be easier coding in Python. Isn’t this a classic use for a Reader monad, which is for the purpose of passing an environment around without having to do so explicitly?

Andrew


On 7/06/2015, 05:07, "Beginners on behalf of mike h" <beginners-bounces at haskell.org on behalf of mike_k_houghton at yahoo.co.uk> wrote:

Global state is an option - thanks. Didn't think Haskell allowed this.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150919/51c7b2c9/attachment.html>


More information about the Beginners mailing list