4 ms·
This is pretty cool. In FP there's a pattern called "functional core, imperative shell" [0]; here, you can build your "functional core" in Haskell and your impe
by wk_end 3y ago
This is pretty cool. In FP there's a pattern called "functional core, imperative shell" [0]; here, you can build your "functional core" in Haskell and your imperative shell in a language which - depending on your preferences, some might say - is a little more suitable for building an imperative shell. Because it uses JSON as the "wire format" between the two languages, you can then easily build out a different imperative shell for whichever platforms you want to support.
[0] https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell https://www.destroyallsoftware.com/screencasts/catalog/funct...