News for hackers. Stuff that matters.
Re:The 4-chan Go programmer by nerdponx on Thursday August 29, 2024 @05:09AM (#41388823)
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.

Re:The 4-chan Go programmer by DaiPlusPlus on Thursday August 29, 2024 @05:51AM (#41389045)
> 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?