6 ms·
In some cases it is very practical, even in other (non functional) programming languages. For example, https://sans-io.readthedocs.io/ https://sans-io.readthed
by mindcrash 9y ago
In some cases it is very practical, even in other (non functional) programming languages.
For example, https://sans-io.readthedocs.io/ https://sans-io.readthedocs.io/ (and its accompanying talk https://www.youtube.com/watch?v=7cC3_jGwl_U https://www.youtube.com/watch?v=7cC3_jGwl_U) give some really great brainfood about the way currently all kinds of network protocols are implemented, and the benefits of separating the protocol (Logic) from the actual implementation (IO).
You might also want to query Google or DDG for "Free monads" if you want to implement a similar layered approach in a functional language such as Scala or Haskell.
- truth_seeker 9y agoThat's very concise. Thanks. Always good to see actual code :)