As pure function is preferred over impure function, then how do we go about logging?
If you’re into making everything pure as much as you can do then https://github.com/lancewalton/treelog is a possible solution for you. It wraps function’s return value in a tree log.
2 Likes