2 ms·
FP has design patterns too, just different ones, and they don't all have tidy names. Also some GoF design patterns map pretty closely to FP equivalents... patt
by nerdponx 2y ago
FP has design patterns too, just different ones, and they don't all have tidy names.
Also some GoF design patterns map pretty closely to FP equivalents... pattern-matching on ADTs + traverse/fold + ReaderT ends up looking a lot like the visitor pattern.
- DaiPlusPlus 2y ago> pattern-matching on ADTs + traverse/fold + ReaderT ends up looking a lot like the visitor pattern. ...that sounds like hand-written tedium; isn't `replicate` meant to avoid that?