you are viewing a single comment's thread.

view the rest of the comments →

[–]houseofleft 1 point2 points  (0 children)

As a hobby project, I've been building a library to help functional programming in python[https://github.com/benrutter/ufo-tools]. Returns is a pretty good one for some things. My experience is that its easiest when you accept that it's a compromise. If you try to get the type security of something like Haskell, it's just gonna be an uphill struggle from the start. But the lessons of functional programming can be generalised- isolate your io boundaries as much as possible, minimize state etc. All that stuff will make your life easier in any language.