I already have functors, effectively, by writing sql queries in clojure with honeysql. The clojure data structures make behavior composition from reusable sql snippets easy, and the testing of sql snippets is just based on literals as the article describes. Works really well.
nateroling|1 year ago
Sadly the whole idea of composable query builders seems to have fallen out of fashion.
jaza|1 year ago