DEV Community

Discussion on: I'm looking for a new coding paradigm.

Collapse
 
vonheikemen profile image
Heiker

This sounds a lot like the reader monad. Take a look at this implementation. Maybe that's what you're looking for, or maybe you can use it as a base for what you want to do.

Collapse
 
reggi profile image
Thomas Reggi • Edited

Wow per your recommendation, I've been playing around with crocs it seems like a really useful library and there is much to learn from it, I think there's a lot here to work with and possibly build on. It does lack TypeScript support though 😭. Thank you so much for the recomendation!

Collapse
 
vonheikemen profile image
Heiker

Right... typescript. I don't know much about it but I understand that these FP patterns are not easy to do with typescript. But anyway, might want to take a look at fp-ts.