4 ms·
>I'm not arguing for pure functional systems (which I can see going very poorly with relational databases). Why? The very best "OO" interactions I have with a
by jbjohns 7y ago
>I'm not arguing for pure functional systems (which I can see going very poorly with relational databases).
Why? The very best "OO" interactions I have with a database are via Linq which is a monad [1]. What it actually does is simply build the plan for what to do in the database and actually do the query at the last possible opportunity. Exactly how it would work in a purely functional setting.
[1 ]https://github.com/louthy/language-ext/wiki/Thinking-Functionally:-What-is-LINQ-really%3F https://github.com/louthy/language-ext/wiki/Thinking-Functio...
- dnautics 7y agoYes, ecto is basically a monad too (it's based on linq), but at the edges it will violate functional purity. Linq is functional, but functional-impure.