Hi @Dobiasd,
I worked through your Udemy functional programming course and found functional programming and fplus to be highly interesting. Am currently attempting to refactor some code and am just wondering if there is a way to model IO monads using fplus?
I have a function that is currently as such:
//func : [String] -> Result String String
fplus::result< std::string, std::string > func( const std::vector< std::string >& param )
However, I would like to add some logging at the start of the function. This would change the return type since logging is an IO action which may fail, but not too sure how it can be done using fplus.
Be great if I could get your advice :)
Hi @Dobiasd,
I worked through your Udemy functional programming course and found functional programming and
fplusto be highly interesting. Am currently attempting to refactor some code and am just wondering if there is a way to model IO monads usingfplus?I have a function that is currently as such:
However, I would like to add some logging at the start of the function. This would change the return type since logging is an
IOaction which may fail, but not too sure how it can be done usingfplus.Be great if I could get your advice :)