4 ms·
> Well because you need the rest of the language to make your program tell your system to do stuff. That's not necessary for business logic, though. This would
by darby_nine 2y ago
> Well because you need the rest of the language to make your program tell your system to do stuff.
That's not necessary for business logic, though. This would presumably be embedded in infrastructure that handled i/o separately.
- agentultra 2y agoI've heard of systems like Roc + Nea taking this to the extreme [0]. Totally a way to go. Haskell, to some extent, can help you structure your program in this way where the business logic is just simple, plain, old functional code. You can write the data marshalling, logging, and networking layers separately. There are a few ways to tackle that in Haskell in varying levels of complexity as you would expect coming from other general-purpose programming languages. [0] https://www.youtube.com/watch?v=zMRfCZo8eAc&t=952s https://www.youtube.com/watch?v=zMRfCZo8eAc&t=952s