Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
tembok@tembok@misskey.id (2026-09-17 13:36:18)
Honestly I still don't know how to apply FP paradigm pragmatically. Like if you want to eliminate side effects as much as possible, your function will have so many parameters right? At that point, I think it will just become so annoying
Reply
---Replies---
Layar Laut@layarlaut@misskey.id (2026-09-17 16:01:15)
@tembok when I write in Haskell I rarely run into that problem. You just coupled them as a single data representation with ADT. Seperate stuff between IO and pure function. Try looking up "functional core, imperative shell"
Though there's some places where FP is impossible because of how the architecture is written. For example, in most game engine require you to directly modify other objects. ECS architecture like bevy on the other hand require you to say upfront what data it needs and what data it modifies