Eonblast / Emysql

Erlang MySQL driver
http://eonblast.github.com/Emysql
Other
434 stars 208 forks source link

Split monadic and non-monadic code #115

Open jlouis opened 10 years ago

jlouis commented 10 years ago

Code which communicates with the underlying socket is monadic. Code which just analyses results computationally are pure. If you split this up, then it becomes easier to test the code base by invoking internals on the purely-functional parts.

It also improves the general structure of the module and shifts responsibility around in a neat way.

saa commented 10 years ago

You want split into modules?