Fork me on GitHub
#architecture
<
2017-03-14
>
yonatanel00:03:05

I used to use a single implementation protocol just to have a bunch of functions with the same convenient context from the enclosing record, like a db connection, config etc. I'm still not sure how to do that without records, but I don't need this anymore for some reason. Maybe I got used to passing context to functions, or maybe using the component lib more made this go away.

Lambda/Sierra12:03:28

The component library doesn't require that components be records: If the component has no lifecycle of its own, you can use a plain map.